{
  "_id": "6acccd77a14063b82c3a958c",
  "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",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-12 12:01:21 UTC",
    "User": "root"
  },
  "Author": "George Vega Yon [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3171-0844>), Department of\nVeterans Affairs - Rehabilitation, Research, and Development\nService [fnd] (Award/W81XWH-18-PH/TBIRP-LIMBIC under Award No.\nI01 RX003443), U.S. Army Medical Research Acquisition Activity\n[fnd] (ORION project, Award #W81XWH1910615)",
  "Maintainer": "George Vega Yon <g.vegayon@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-02-13 07:30:09 UTC",
  "RemoteUrl": "https://github.com/cran/defm",
  "RemoteRef": "HEAD",
  "RemoteSha": "304d7ea7047a1571981be488559ce188ae77f33a",
  "_user": "cran",
  "_type": "src",
  "_file": "defm_0.2.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/8fc108871ba1fff55b5d7304b7fc98ce9671426a18db4a0ed81765ba6013c17b",
  "_filesize": 271290,
  "_sha256": "8fc108871ba1fff55b5d7304b7fc98ce9671426a18db4a0ed81765ba6013c17b",
  "_expires": "2027-01-20T12:07:18.000Z",
  "_created": "2026-10-12T12:01:21.000Z",
  "_published": "2026-10-12T12:07:19.783Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114801480234,
      "time": 207,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11746736814"
    },
    {
      "job": 114801480326,
      "time": 204,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11746222116"
    },
    {
      "job": 114801480179,
      "time": 198,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11746526936"
    },
    {
      "job": 114801480365,
      "time": 122,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11745427893"
    },
    {
      "job": 114800382055,
      "time": 178,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11746576290"
    },
    {
      "job": 114801480182,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11745767672"
    },
    {
      "job": 114801480221,
      "time": 246,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11745478153"
    },
    {
      "job": 114801480390,
      "time": 296,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11745843219"
    },
    {
      "job": 114801480215,
      "time": 246,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11746552056"
    },
    {
      "job": 114801480294,
      "time": 121,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11745672789"
    }
  ],
  "_upstream": "https://github.com/cran/defm",
  "_commit": {
    "id": "304d7ea7047a1571981be488559ce188ae77f33a",
    "author": "George Vega Yon <g.vegayon@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.1.0\n",
    "time": 1770967809
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-07",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.2.1.0",
      "date": "2026-02-13"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "gvegayon",
      "count": 3,
      "uuid": 893619
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 56,
    "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,
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/defm.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/uofuepibio/defm",
  "_realowner": "uofuepibio",
  "_cranurl": false,
  "_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/cran/defm/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/cran/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": 1.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "defm",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://uofuepibio.r-universe.dev/defm",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:04:52.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/edcabf7051a97e97ff7d049f2ae8d4dc1f469980062a8b74a19ce112ca94d432",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:03:28.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/06c01158e7ba87c9ef19a873c458b80e8a30a067ff2c96ad07333f925a36288c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:03:15.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/ea07dd9769ad07630bea15305aad71dea91ccb0fac4bb59ae84d969aee3885d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:03:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/e179498b04ae1d0bf71c722e729b07906b61c0d3ea3476e078e2a3b492d2a685",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:03:32.000Z",
      "arch": "emscripten",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/8f09edb540b3a583c66b2d6188b34e2abc8858e9b7dc0d44d2f7235067e10e3d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:05:17.000Z",
      "arch": "aarch64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/367f05bc77d1deb748694f9a507e1043e6e5bebbfaee19a72f110c88e506a197",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:05:10.000Z",
      "arch": "x86_64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/27695f350ece00251fc6c0fd2469a55dc7ce5a5fe9966bf3656bf1a7c0e783e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:05:17.000Z",
      "arch": "aarch64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/736e929892a3d252917ea18291696f93921f405239b98e6f7228e8750110bf77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.1.0",
      "date": "2026-10-12T12:02:52.000Z",
      "arch": "x86_64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "https://r2.ropensci.org/76c82b474e25e0487cc82dbd1cf904eab8e85a281e1675b721972951078029f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38246096403"
    }
  ]
}