{
  "_id": "6a4a2b984727062d5eca5a03",
  "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-07-05 09:56:38 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>",
  "_user": "uofuepibio",
  "_type": "src",
  "_file": "defm_0.2.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/454d6d2ba87d1f5015133f1a15711a47a19805535d8c838ee83f19be19de8e11",
  "_filesize": 277716,
  "_sha256": "454d6d2ba87d1f5015133f1a15711a47a19805535d8c838ee83f19be19de8e11",
  "_expires": "2026-10-13T10:01:58.000Z",
  "_created": "2026-07-05T09:56:38.000Z",
  "_published": "2026-07-05T10:02:00.609Z",
  "_jobs": [
    {
      "job": 85212735945,
      "time": 157,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8090657038"
    },
    {
      "job": 85212735943,
      "time": 138,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8090654443"
    },
    {
      "job": 85212735944,
      "time": 124,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090653193"
    },
    {
      "job": 85212735941,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090654115"
    },
    {
      "job": 85212735947,
      "time": 108,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8090650899"
    },
    {
      "job": 85212735952,
      "time": 254,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8090669505"
    },
    {
      "job": 85212735936,
      "time": 97,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090649340"
    },
    {
      "job": 85212735934,
      "time": 262,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090670414"
    },
    {
      "job": 85212558740,
      "time": 164,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090636025"
    },
    {
      "job": 85212735912,
      "time": 152,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8090656188"
    },
    {
      "job": 85212735928,
      "time": 146,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8090655432"
    },
    {
      "job": 85212735926,
      "time": 136,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8090654053"
    },
    {
      "job": 85212735953,
      "time": 131,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090653376"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 11
  },
  "_downloads": {
    "count": 239,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/defm"
  },
  "_devurl": "https://github.com/uofuepibio/defm",
  "_pkgdown": "https://uofuepibio.github.io/defm/",
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_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",
    "LICENSE",
    "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": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "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-07-05T09:59:26.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/d63413a893bcb45f35f1ce825f886d865a2ee7372427af8a0e4baa21d941d025",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:58.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/025f994df58e74c608c3ecf3834ab4c289015c560ed2ab4d49f50b0d3102eaa6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:57.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/d07f7e4f7de232a801e07d7882e337fe2de92d106bcfa3fde2079b5eef7ed261",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:57.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/8cfb796edf35e6baf9dccd5696667f0a5b7ce97c6bc4822d6cd6989f8d3c06f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:43.000Z",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/62c176ce7f766296042709003b4cef2dd92299c09089bc3ea1720717d2d3f747",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-07-05T10:00:46.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/ab0af6c877f3ca46b391dca2ff4a82d06cccd9d058b129fa99478500f24df18f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:34.000Z",
      "arch": "aarch64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/8854862f4c98538aaa0ee60aa21eb2d63c018f3c9a77fe1f94ff6c4b90ba0824",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.1.0",
      "date": "2026-07-05T10:00:36.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/64c5cc64122baef359fa057a5d2fe15f79018e367731ce6169d16ddd56536761",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:59:32.000Z",
      "arch": "emscripten",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/8f2d85409b063dae701f98e66ba5b8d801f5dda0feefcf4e40aecadcd76b3278",
      "status": "success",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:40.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/f93295c6ddd0e2ebf5c7eace8c8eed58e8dbf3ae7287eb2d142735fb8bddd8c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:35.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/f666b7bf35311a0a5c7c681114ac45a5610b982c119fa26522b9ce3f292cfd0c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-07-05T09:58:28.000Z",
      "arch": "x86_64",
      "commit": "57a79707fc39b785a3ac787c73bbb4eda0ef3905",
      "fileid": "https://r2.ropensci.org/fc2eabd271cdaa8e1b7b748e1e8b70f8103d259df12017a2334bdf3d24026f69",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/28736876256"
    }
  ]
}