{
  "_id": "6a1fccf8b401979e73432e50",
  "Package": "defm",
  "Type": "Package",
  "Title": "Estimation and Simulation of Multi-Binary Response Models",
  "Version": "0.2.1.0",
  "Authors@R": "c(\nperson(\"George\", \"Vega Yon\", role=c(\"aut\", \"cre\"),\nemail=\"g.vegayon@gmail.com\", comment = c(ORCID = \"0000-0002-3171-0844\")),\nperson(\n\"Department of Veterans Affairs - Rehabilitation, Research, and Development Service\",\nrole = \"fnd\",\ncomment = \"Award/W81XWH-18-PH/TBIRP-LIMBIC under Award No. I01 RX003443\"\n),\nperson(\n\"U.S. Army Medical Research Acquisition Activity\", role = \"fnd\",\ncomment = \"ORION project, Award #W81XWH1910615\")\n)",
  "Description": "Multi-binary response models are a class of models that\nallow for the estimation of multiple binary outcomes\nsimultaneously. This package provides functions to estimate and\nsimulate these models using the Discrete Exponential-Family\nModels [DEFM] framework. In it, we implement the models\ndescribed in Vega Yon, Valente, and Pugh (2023)\n<doi:10.48550/arXiv.2211.00627>. DEFMs include\nExponential-Family Random Graph Models [ERGMs], which\ncharacterize graphs using sufficient statistics, which is also\nthe core of DEFMs. Using sufficient statistics, we can describe\nthe data through meaningful motifs, for example, transitions\nbetween different states, joint distribution of the outcomes,\netc.",
  "URL": "https://github.com/UofUEpiBio/defm,\nhttps://uofuepibio.github.io/defm/",
  "BugReports": "https://github.com/UofUEpiBio/defm/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Repository": "https://uofuepibio.r-universe.dev",
  "Date/Publication": "2026-05-04 21:44:22 UTC",
  "RemoteUrl": "https://github.com/UofUEpiBio/defm",
  "RemoteRef": "HEAD",
  "RemoteSha": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-03 06:38:44 UTC",
    "User": "root"
  },
  "Author": "George Vega Yon [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3171-0844>),\nDepartment of Veterans Affairs - Rehabilitation, Research, and\nDevelopment Service [fnd] (Award/W81XWH-18-PH/TBIRP-LIMBIC under\nAward No. I01 RX003443),\nU.S. Army Medical Research Acquisition Activity [fnd] (ORION project,\nAward #W81XWH1910615)",
  "Maintainer": "George Vega Yon <g.vegayon@gmail.com>",
  "MD5sum": "5e75b52e09a3f33c1e9588b43589d577",
  "_user": "uofuepibio",
  "_type": "src",
  "_file": "defm_0.2.1.0.tar.gz",
  "_fileid": "720195d37e6e0afb968e9317f41499981187a3d3408812d876b8037ace4eea60",
  "_filesize": 271760,
  "_sha256": "720195d37e6e0afb968e9317f41499981187a3d3408812d876b8037ace4eea60",
  "_created": "2026-06-03T06:38:44.000Z",
  "_published": "2026-06-03T06:43:04.580Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79236496544,
      "time": 127,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7377472782"
    },
    {
      "job": 79236496555,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7377470358"
    },
    {
      "job": 79236496554,
      "time": 133,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377474237"
    },
    {
      "job": 79236496606,
      "time": 109,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377467069"
    },
    {
      "job": 79236496639,
      "time": 110,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7377478954"
    },
    {
      "job": 79236496549,
      "time": 198,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7377493670"
    },
    {
      "job": 79236496534,
      "time": 115,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377478098"
    },
    {
      "job": 79236496557,
      "time": 184,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377489848"
    },
    {
      "job": 79236111962,
      "time": 179,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377436121"
    },
    {
      "job": 79236496525,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377467663"
    },
    {
      "job": 79236496526,
      "time": 121,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7377470374"
    },
    {
      "job": 79236496542,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7377466342"
    },
    {
      "job": 79236496515,
      "time": 106,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377466237"
    }
  ],
  "_buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/UofUEpiBio/defm",
  "_commit": {
    "id": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
    "author": "George G. Vega Yon <g.vegayon@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Preparing for CRAN release (#7)\n\n* Preparing for CRAN release\n\n* Adding a few tests\n\n* Adding tests and refactor pkgdown action\n\n* Minor fix in tests\n\n* Addressing CRAN comment\n\n* Changed to contributor covenant v 3",
    "time": 1777931062
  },
  "_maintainer": {
    "name": "George Vega Yon",
    "email": "g.vegayon@gmail.com",
    "login": "gvegayon",
    "bluesky": "@gvegayon.bsky.social",
    "linkedin": "in/georgevegayon",
    "description": "Scientist at @UofUEpiBio modeling complex systems using statistical computing. Lots of time at @CDCgov.",
    "uuid": 893619,
    "orcid": "0000-0002-3171-0844"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "stats4",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "barry",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "texreg",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    },
    {
      "package": "barry",
      "role": "Suggests"
    }
  ],
  "_owner": "uofuepibio",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2025-47",
      "n": 2
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-19",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2.1.0",
      "date": "2026-05-04"
    }
  ],
  "_topics": [
    "ergm",
    "mle",
    "modeling",
    "simulation",
    "statistics",
    "cpp",
    "openmp"
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "gvegayon",
      "count": 102,
      "uuid": 893619
    }
  ],
  "_userbio": {
    "uuid": 89941410,
    "type": "organization",
    "name": "Divisions of Epidemiology and Biostatistics at the U"
  },
  "_downloads": {
    "count": 128,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/defm"
  },
  "_devurl": "https://github.com/uofuepibio/defm",
  "_pkgdown": "https://uofuepibio.github.io/defm/",
  "_searchresults": 4,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/defm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/uofuepibio/defm",
  "_realowner": "uofuepibio",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-0",
      "date": "2023-08-08"
    },
    {
      "version": "0.1-1",
      "date": "2023-09-07"
    },
    {
      "version": "0.2.1.0",
      "date": "2026-02-16"
    }
  ],
  "_exports": [
    "defm_mle",
    "get_counters",
    "get_stats",
    "get_X_names",
    "get_Y_names",
    "init_defm",
    "loglike_defm",
    "logodds",
    "morder_defm",
    "motif_census",
    "ncol_defm_x",
    "ncol_defm_y",
    "new_defm",
    "nobs_defm",
    "nrow_defm",
    "nterms_defm",
    "print_stats",
    "rule_constrain_support",
    "rule_not_one_to_zero",
    "set_counter_info",
    "set_counters_names",
    "sim_defm",
    "summary_table",
    "td_formula",
    "td_generic",
    "td_logit_intercept",
    "td_ones",
    "texreg_fancy"
  ],
  "_datasets": [
    {
      "name": "valentesns",
      "title": "Valente's SNS data",
      "object": "valentesns",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "year",
        "Hispanic",
        "Female",
        "Grades",
        "tobacco",
        "alcohol",
        "mj",
        "sibsmoke",
        "sibdrink",
        "adultdrink",
        "year_value",
        "present",
        "school",
        "has_sib",
        "exposure_smoke",
        "exposure_drink",
        "exposure_mj"
      ],
      "rows": 1730,
      "table": true,
      "tojson": true
    },
    {
      "name": "valentesnsList",
      "title": "Valente's SNS data",
      "object": "valentesnsList",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "DEFM",
      "title": "Discrete Exponential Family Model (DEFM)",
      "topics": [
        "DEFM",
        "defm",
        "init_defm",
        "morder_defm",
        "ncol_defm_x",
        "ncol_defm_y",
        "new_defm",
        "new_defm_cpp",
        "nobs_defm",
        "nrow_defm",
        "nterms_defm",
        "print_stats"
      ]
    },
    {
      "page": "defm_terms",
      "title": "Model specification for DEFM",
      "topics": [
        "+.DEFM",
        "defm_terms",
        "rule_constrain_support",
        "rule_not_one_to_zero",
        "td_formula",
        "td_generic",
        "td_logit_intercept",
        "td_ones",
        "terms_defm"
      ]
    },
    {
      "page": "defm-names",
      "title": "Access to the names of a model's datasets",
      "topics": [
        "defm-names",
        "get_X_names",
        "get_Y_names"
      ]
    },
    {
      "page": "get_counters",
      "title": "Extract the counters from a DEFM model",
      "topics": [
        "as.list.DEFM_counter",
        "as.list.DEFM_counters",
        "get_counters",
        "length.DEFM_counters",
        "set_counters_names",
        "set_counters_names.DEFM",
        "set_counters_names.DEFM_counters",
        "set_counter_info",
        "[.DEFM_counters"
      ]
    },
    {
      "page": "get_stats",
      "title": "Get sufficient statistics counts",
      "topics": [
        "get_stats"
      ]
    },
    {
      "page": "loglike_defm",
      "title": "Log-Likelihood of DEFM",
      "topics": [
        "loglike_defm"
      ]
    },
    {
      "page": "defm_mle",
      "title": "Maximum Likelihood Estimation of DEFM",
      "topics": [
        "defm_mle",
        "logodds",
        "summary_table",
        "texreg_fancy"
      ]
    },
    {
      "page": "motif_census",
      "title": "Motif census",
      "topics": [
        "defm_motif_census",
        "motif_census"
      ]
    },
    {
      "page": "sim_defm",
      "title": "Simulate data using a DEFM",
      "topics": [
        "sim_defm"
      ]
    },
    {
      "page": "valentesns",
      "title": "Valente's SNS data",
      "topics": [
        "valentesns",
        "valentesnsList"
      ]
    }
  ],
  "_pkglogo": "https://github.com/UofUEpiBio/defm/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/UofUEpiBio/defm/raw/HEAD/README.md",
  "_rundeps": [
    "barry",
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 3.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "defm",
  "_universes": [
    "uofuepibio",
    "gvegayon"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:40:59.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "9a6c2226e8751c9baaff756210fa151ec8f72ddc808a1a754fb21557c28726d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:40:54.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "d605b3b71b15b1be85059fe7a8f33bbe76efa2f3dbb692727a18b241b95c0c15",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:41:09.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "f08acbdbfebb5d0d15c2ac9f7984d28d51e838e41f18c37d4e03a04a5ecfcd30",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:40:41.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "04d816bfba5aef1d5b43b02fb023a05e6bd212b7e819cbdfc3e0ddcdd50ab795",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:41:30.000Z",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "cde375db8b383aad9079484ca65426789fc6fffb5cd6332986beacbffa7fb782",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:41:58.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "246fa0ec1c51904fbc1282bc281dc70b4a0236f6dfc6e9e71718c6796177605e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:41:25.000Z",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "d6c9e930b019df57f258a8ea2254fc0587aceb702c111e1a0728d73ba067aa8e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:41:40.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "aabc1fe43e93c6b756dadb22b915c65661d5b515c5af3e96719bc1e4f129c14b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:40:59.000Z",
      "arch": "emscripten",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "b866201ecd3815a3162ed4bc5808b2a26d5a2bb4c3efc0e4b8bb4d84e57f5653",
      "status": "success",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:40:18.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "f9a462c443f0c84fd3cc74f027d65a7182636606d775284613c930fd3f0c812a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:40:09.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "26a40b096c9fd2322a427ecd1856c99e68d5e06e4ca730ede5d7a2ed3c18d818",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-06-03T06:40:06.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "84c7a2e7f2446056c10ec9480e51125abc729d222db70daaf2cbd2f7a376d857",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/26868022416"
    }
  ]
}