{
  "_id": "6adbaeae077e75fa285b0292",
  "Package": "defm",
  "Type": "Package",
  "Title": "Estimation and Simulation of Multi-Binary Response Models",
  "Version": "0.3.0.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)",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://uofuepibio.r-universe.dev",
  "Date/Publication": "2026-10-23 18:32:49 UTC",
  "RemoteUrl": "https://github.com/UofUEpiBio/defm",
  "RemoteRef": "HEAD",
  "RemoteSha": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-23 18:43:32 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.3.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/ad331b597906a584b54fd515c051d2bc009cfd0dfe9e3e9469ca8f5f9a4edfbf",
  "_filesize": 363567,
  "_sha256": "ad331b597906a584b54fd515c051d2bc009cfd0dfe9e3e9469ca8f5f9a4edfbf",
  "_expires": "2027-01-31T18:59:56.000Z",
  "_created": "2026-10-23T18:43:32.000Z",
  "_published": "2026-10-23T18:59:58.380Z",
  "_upstream": "https://github.com/UofUEpiBio/defm",
  "_status": "success",
  "_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"
  },
  "_jobs": [
    {
      "job": 120593112251,
      "time": 98,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12523787489"
    },
    {
      "job": 120593112166,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12524426282"
    },
    {
      "job": 120593112155,
      "time": 96,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12524047016"
    },
    {
      "job": 120593112103,
      "time": 110,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12524126647"
    },
    {
      "job": 120593112295,
      "time": 109,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12524393200"
    },
    {
      "job": 120593112270,
      "time": 275,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12524701489"
    },
    {
      "job": 120593112370,
      "time": 119,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12523843243"
    },
    {
      "job": 120593112242,
      "time": 285,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12523624970"
    },
    {
      "job": 120591117338,
      "time": 255,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12524266178"
    },
    {
      "job": 120593112025,
      "time": 94,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12523319565"
    },
    {
      "job": 120593112202,
      "time": 191,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12523937259"
    },
    {
      "job": 120593112207,
      "time": 153,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12524540976"
    },
    {
      "job": 120593112361,
      "time": 125,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12523439241"
    },
    {
      "job": 120593112274,
      "time": 214,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12524736327"
    },
    {
      "job": 120593112294,
      "time": 103,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12524042036"
    }
  ],
  "_buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896",
  "_commit": {
    "id": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
    "author": "George G. Vega Yon <g.vegayon@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "barry 0.3.0 reached CRAN (#16)\n\n* barry 0.3.0 reached CRAN\n\n* Updating version of barry",
    "time": 1792780369
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "stats4",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "barry",
      "version": ">= 0.2.99",
      "role": "LinkingTo"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "texreg",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    },
    {
      "package": "barry",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    }
  ],
  "_owner": "uofuepibio",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-47",
      "n": 2
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-29",
      "n": 2
    },
    {
      "week": "2026-30",
      "n": 1
    },
    {
      "week": "2026-32",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 1
    },
    {
      "week": "2026-37",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 1
    },
    {
      "week": "2026-43",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v0.2.1.0",
      "date": "2026-05-04"
    }
  ],
  "_topics": [
    "ergm",
    "mle",
    "modeling",
    "simulation",
    "statistics",
    "cpp",
    "openmp"
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "gvegayon",
      "count": 113,
      "uuid": 893619
    }
  ],
  "_userbio": {
    "uuid": 89941410,
    "type": "organization",
    "name": "Divisions of Epidemiology and Biostatistics at the U",
    "followers": 13
  },
  "_downloads": {
    "count": 43,
    "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.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": 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",
    "loglike_defm_grad",
    "loglike_defm_hess",
    "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",
    "show",
    "sim_defm",
    "summary",
    "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_mle-class",
      "title": "Fitted DEFM",
      "topics": [
        "defm_mle-class",
        "show,defm_mle-method",
        "show,summary.defm_mle-method",
        "summary,defm_mle-method",
        "summary.defm_mle-class"
      ]
    },
    {
      "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": "loglike_defm_grad",
      "title": "Gradient and Hessian of the DEFM log-likelihood",
      "topics": [
        "loglike_defm_grad",
        "loglike_defm_hess"
      ]
    },
    {
      "page": "defm_mle",
      "title": "Maximum Likelihood Estimation of DEFM",
      "topics": [
        "defm_mle",
        "logodds",
        "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": "summary_table",
      "title": "Summary table of a fitted DEFM",
      "topics": [
        "as.data.frame.defm_summary_table",
        "format.defm_summary_table",
        "print.defm_summary_table",
        "summary_table"
      ]
    },
    {
      "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.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "defm",
  "_universes": [
    "uofuepibio",
    "gvegayon"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:45:26.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/feac883328b5b659b9fe5f5ac8868379074c0839b40f66e5a030886837a48fab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:45:44.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/94b67e49a816b30d71ca57024d924e4ee89aaa91ad253f49ba9708cb7375fef0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:45:26.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/7c0219c2cbdb41f3c35053fe869a85483de943a4749873baaf3ae85d29805a11",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:45:43.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/8226a810afbd895b575ecc8a60f69a22f3d64891a5a54e684b9a825b37314fd8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:59:03.000Z",
      "arch": "aarch64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/0a11b1339c65720c8f0f647e70b7f5f562cae180f1c4671ca675bfdf94d1ae59",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:49:24.000Z",
      "arch": "x86_64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/58b72ffb3a8e2b97e4444af5e8074a3b719ffb58e5b1deff4835067c365f7566",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:52:06.000Z",
      "arch": "aarch64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/4413ebd00ff906b7d915421ba6e048b08187a218d9132da323751521105339cb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:49:01.000Z",
      "arch": "x86_64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/4740d8b8cd9a5248b7d32649b715b4eb2ff823d403146f28639ce13d2b313bf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:45:43.000Z",
      "arch": "emscripten",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/362824792684ce5e971c44c65bbe9e001685a0ac47a051e812dc2bdbbc4a108e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:46:39.000Z",
      "arch": "aarch64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/1bb36e49e0dcf9e9a57011dd96fe245c19ba205d1bc976a75bc46679621c3133",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:45:07.000Z",
      "arch": "x86_64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/03f80f9eb2464e3c3355e3caf06b952a5f06aa4f59e40d93e5022ad1e93527c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:45:01.000Z",
      "arch": "x86_64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/d88839686e998c9bdf9735d79c6362f5240dbb5b11228058f8654db38eec2301",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:47:03.000Z",
      "arch": "aarch64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/c83cd78a8ea717c80df8730a45b3928a1c7830f10afd620d90dbdead921ae8dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0.0",
      "date": "2026-10-23T18:44:59.000Z",
      "arch": "x86_64",
      "commit": "a0f7148148723a109f5a4dad26a6a37e1aee8637",
      "fileid": "https://r2.ropensci.org/ac3974fffbbe1e401be0f2528d3caa2bb99b176b1967233af948b68fb1f13519",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uofuepibio/actions/runs/40005130896"
    }
  ]
}