{
  "_id": "6a3502cb3efcd9bda43d720d",
  "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-06-19 08:46:45 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",
  "MD5sum": "376c8aaa337efdfab305b4e45ea2f615",
  "_user": "cran",
  "_type": "src",
  "_file": "defm_0.2.1.0.tar.gz",
  "_fileid": "03ab7953fcde689c6c9b4a7fc2150e72e6f54bbc3b4e14fe0860261410d7a6ac",
  "_filesize": 278538,
  "_sha256": "03ab7953fcde689c6c9b4a7fc2150e72e6f54bbc3b4e14fe0860261410d7a6ac",
  "_created": "2026-06-19T08:46:45.000Z",
  "_published": "2026-06-19T08:50:19.863Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82315686920,
      "time": 139,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745540808"
    },
    {
      "job": 82315686914,
      "time": 122,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745534718"
    },
    {
      "job": 82315686926,
      "time": 146,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745543024"
    },
    {
      "job": 82315686917,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745546293"
    },
    {
      "job": 82315237635,
      "time": 173,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745496082"
    },
    {
      "job": 82315686890,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745532030"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27815386051",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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": 610,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 170,
    "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,
  "_topics": [
    "cpp",
    "openmp"
  ],
  "_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",
    "LICENSE",
    "manual.pdf"
  ],
  "_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": "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": 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-06-19T08:49:15.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "3e9d71559023435d8bb2ecbc7baabf80a18949a298f77b25127a4a24acf5ba96",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27815386051"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-06-19T08:48:52.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "02f843b19b3542215361f15b60c718c627a12a194cb8c0bb79687645ea3c03ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27815386051"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-06-19T08:49:21.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "adc0585ad000c2d7d8d69bd2d27519eb3ff5ddb85e712f2c7bbb56bf5ae1ef05",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27815386051"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1.0",
      "date": "2026-06-19T08:49:28.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "1af3f391d5795b7f7c0991342b61ac3e6f8f4a6f738c859fbed924f29cd2bfa3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27815386051"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1.0",
      "date": "2026-06-19T08:49:02.000Z",
      "arch": "emscripten",
      "commit": "304d7ea7047a1571981be488559ce188ae77f33a",
      "fileid": "18c3c6ff0bb7abd54631f24bd964d0f0e60bd62e740bf57d2808adcc4dd9ce23",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27815386051"
    }
  ]
}