{
  "_id": "6a1ed4efb401979e7340e40a",
  "Package": "bml",
  "Type": "Package",
  "Title": "Bayesian Multiple-Membership Multilevel Models with\nParameterizable Weight Functions",
  "Version": "0.9.0",
  "Description": "Implements Bayesian multiple-membership multilevel models\nwith parameterizable weight functions via 'JAGS' to model how\nlower-level units jointly shape higher-level outcomes\n(micro-macro link) across a range of outcome types (e.g.,\nlinear, logit, and survival models). Supports estimation and\ncomparison of alternative aggregation mechanisms, allows weight\nmatrices to be endogenized through parameters and covariates,\nand accommodates complex dependence structures that extend\nbeyond traditional multilevel frameworks. For details, see\nRosche (2026) \"A Multilevel Model for Coalition Governments.\nUncovering Party-Level Dependencies Within and Between\nGovernments\" <doi:10.31235/osf.io/4bafr_v2>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "URL": "https://benrosche.github.io/bml/",
  "BugReports": "https://github.com/benrosche/bml/issues",
  "RoxygenNote": "7.3.3",
  "Authors@R": "person(\"Benjamin\", \"Rosche\", role=c(\"aut\", \"cre\"),\nemail=\"benrosche@nyu.edu\", comment=c(ORCID=\"0000-0001-5196-625X\"))",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "jags libicu-dev libssl-dev libx11-dev",
  "Repository": "https://benrosche.r-universe.dev",
  "Date/Publication": "2026-03-17 20:48:38 UTC",
  "RemoteUrl": "https://github.com/benrosche/bml",
  "RemoteRef": "HEAD",
  "RemoteSha": "26ccd4cff21310dd19f342443933142283270618",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-20 10:41:01 UTC",
    "User": "root"
  },
  "Author": "Benjamin Rosche [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-5196-625X>)",
  "Maintainer": "Benjamin Rosche <benrosche@nyu.edu>",
  "MD5sum": "ef5cbabfe8def2593a207f883dc9540c",
  "_user": "benrosche",
  "_type": "src",
  "_file": "bml_0.9.0.tar.gz",
  "_fileid": "bf7ad259e10e3c73edb0ab966304ea9105865cd021795df3f3450d86640fbbbc",
  "_filesize": 721055,
  "_sha256": "bf7ad259e10e3c73edb0ab966304ea9105865cd021795df3f3450d86640fbbbc",
  "_created": "2026-05-20T10:41:01.000Z",
  "_published": "2026-06-02T13:04:47.787Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79076993355,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7107823832"
    },
    {
      "job": 79076993661,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7107824075"
    },
    {
      "job": 79076993187,
      "time": 111,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7107929401"
    },
    {
      "job": 79076993869,
      "time": 118,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7107945697"
    },
    {
      "job": 79076993117,
      "time": 203,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7107771191"
    },
    {
      "job": 79076992692,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358450067"
    },
    {
      "job": 79076993982,
      "time": 116,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7107810713"
    },
    {
      "job": 79076993777,
      "time": 113,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7107810186"
    },
    {
      "job": 79076994387,
      "time": 111,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7107808902"
    }
  ],
  "_buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/benrosche/bml",
  "_commit": {
    "id": "26ccd4cff21310dd19f342443933142283270618",
    "author": "Ben Rosche <benrosche@nyu.edu>",
    "committer": "Ben Rosche <benrosche@nyu.edu>",
    "message": "Merge branch 'master' of https://github.com/benrosche/bmlm\n",
    "time": 1773780518
  },
  "_maintainer": {
    "name": "Benjamin Rosche",
    "email": "benrosche@nyu.edu",
    "login": "benrosche",
    "orcid": "0000-0001-5196-625X",
    "description": "Assistant Professor of Computational Social Science, New York University Abu Dhabi",
    "uuid": 28757430
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "R2jags",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggmcmc",
      "role": "Imports"
    },
    {
      "package": "coda",
      "role": "Imports"
    },
    {
      "package": "patchwork",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "rjags",
      "role": "Suggests"
    }
  ],
  "_owner": "benrosche",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-39",
      "n": 2
    },
    {
      "week": "2025-43",
      "n": 5
    },
    {
      "week": "2025-45",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 7
    },
    {
      "week": "2026-06",
      "n": 6
    },
    {
      "week": "2026-07",
      "n": 5
    },
    {
      "week": "2026-08",
      "n": 3
    },
    {
      "week": "2026-12",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "benrosche",
      "count": 124,
      "uuid": 28757430
    }
  ],
  "_userbio": {
    "uuid": 28757430,
    "type": "user",
    "name": "Ben Rosche",
    "description": "Assistant Professor of Computational Social Science, New York University Abu Dhabi"
  },
  "_downloads": {
    "count": 188,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bml"
  },
  "_devurl": "https://github.com/benrosche/bml",
  "_pkgdown": "https://benrosche.github.io/bml/",
  "_searchresults": 5,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bml.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/benrosche/bml",
  "_realowner": "benrosche",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.9.0",
      "date": "2026-02-20"
    }
  ],
  "_exports": [
    "bml",
    "fix",
    "fn",
    "hm",
    "id",
    "mcmcDiag",
    "mm",
    "monetPlot",
    "varDecomp",
    "vars"
  ],
  "_datasets": [
    {
      "name": "coalgov",
      "title": "Coalition Governments in Western Democracies (1944-2014)",
      "object": "coalgov",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "cid",
        "cname",
        "gid",
        "pid",
        "pname",
        "election",
        "investiture",
        "dur_wkb",
        "event_wkb",
        "n",
        "majority",
        "mwc",
        "rile_SD",
        "pseat",
        "prime",
        "rile",
        "cohesion",
        "finance",
        "Nmembers"
      ],
      "rows": 2077,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bml",
      "title": "Bayesian Multiple-Membership Multilevel Models with Parameterizable Weight Functions Using JAGS",
      "topics": [
        "bml"
      ]
    },
    {
      "page": "coalgov",
      "title": "Coalition Governments in Western Democracies (1944-2014)",
      "topics": [
        "coalgov"
      ]
    },
    {
      "page": "fix",
      "title": "Fix a coefficient to a known value",
      "topics": [
        "fix"
      ]
    },
    {
      "page": "fn",
      "title": "Specify a weight function for multiple-membership models",
      "topics": [
        "fn"
      ]
    },
    {
      "page": "hm",
      "title": "Define a hierarchical nesting structure",
      "topics": [
        "hm"
      ]
    },
    {
      "page": "id",
      "title": "Specify identifier variables for multiple-membership and hierarchical structures",
      "topics": [
        "id"
      ]
    },
    {
      "page": "mcmcDiag",
      "title": "Summarize MCMC convergence diagnostics",
      "topics": [
        "mcmcDiag"
      ]
    },
    {
      "page": "mm",
      "title": "Define a multiple-membership structure",
      "topics": [
        "mm"
      ]
    },
    {
      "page": "monetPlot",
      "title": "Visualize posterior distributions with density and trace plots",
      "topics": [
        "monetPlot"
      ]
    },
    {
      "page": "summary.bml",
      "title": "Summarize a fitted bml model",
      "topics": [
        "summary.bml"
      ]
    },
    {
      "page": "varDecomp",
      "title": "Variance decomposition for fitted bml models",
      "topics": [
        "varDecomp"
      ]
    },
    {
      "page": "vars",
      "title": "Specify covariates for multiple-membership or hierarchical models",
      "topics": [
        "vars"
      ]
    }
  ],
  "_readme": "https://github.com/benrosche/bml/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "bit",
    "bit64",
    "boot",
    "cli",
    "clipr",
    "coda",
    "cpp11",
    "crayon",
    "dplyr",
    "farver",
    "forcats",
    "generics",
    "GGally",
    "ggmcmc",
    "ggplot2",
    "ggstats",
    "glue",
    "gtable",
    "hms",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "patchwork",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R2jags",
    "R2WinBUGS",
    "R6",
    "RColorBrewer",
    "readr",
    "rjags",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libjags",
      "package": "jags",
      "headers": "jags",
      "source": "jags",
      "version": "4.3.2-2.2404.0",
      "name": "jags",
      "homepage": "https://mcmc-jags.sourceforge.io",
      "description": "Just Another Gibbs Sampler for Bayesian MCMC - binary\nJAGS is Just Another Gibbs Sampler.  It is a program for analysis of\nBayesian hierarchical models using Markov Chain Monte Carlo (MCMC)\nsimulation not wholly unlike BUGS.\n\nJAGS was written with three aims in mind:\n* To have an engine for the BUGS language that runs on Unix\n* To be extensible, allowing users to write their own functions,\ndistributions and samplers.\n* To be a plaftorm for experimentation with ideas in Bayesian modelling\n\nThis package contains the 'jags' binary as well as the associated\nshared library modules loaded by the binary."
    },
    {
      "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"
    }
  ],
  "_vignettes": [
    {
      "source": "examples.Rmd",
      "filename": "examples.html",
      "title": "Examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example 1: Political Parties and the Survival of Coalition Governments",
        "Example 2: All Friends or Just Your Best Friend?",
        "Example 3: Air Quality and Home Values"
      ],
      "created": "2021-05-02 21:14:34",
      "modified": "2026-02-02 17:13:13",
      "commits": 17
    },
    {
      "source": "faq.Rmd",
      "filename": "faq.html",
      "title": "Frequently Asked Questions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. What's the difference between a multiple-membership model and a conventional multilevel model?",
        "2. What's the difference between a conventional MMMM and the extended MMMM implemented in bml?",
        "3. When should I use bml instead of other multilevel modeling packages?",
        "4. What outcome types and distributions does bml support?",
        "5. How do I specify the weight function, and what are the c and ar parameters?",
        "6. How do I fix parameters to known values?",
        "Main equation and hm() blocks: Using fix()",
        "Weight function fn(): Omitting parameters",
        "7. I get \"Error in node w.1[...]: Invalid parent values\" — what does this mean?"
      ],
      "created": "2021-05-02 21:14:34",
      "modified": "2026-02-12 10:46:41",
      "commits": 6
    },
    {
      "source": "bml.Rmd",
      "filename": "bml.html",
      "title": "Getting Started with bml",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Installation",
        "Basic Example",
        "Understanding the Data Structure",
        "Model 1: Basic Multiple-Membership Model",
        "Model 2: Parameterizing the Weight Function",
        "Visualizing Results",
        "Next Steps",
        "Key Concepts"
      ],
      "created": "2025-10-24 13:33:34",
      "modified": "2026-02-12 10:46:41",
      "commits": 4
    },
    {
      "source": "installation.Rmd",
      "filename": "installation.html",
      "title": "Installation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Install JAGS",
        "2. Install bml R package",
        "Option A: Install from CRAN (Recommended)",
        "Option B: Install development version from GitHub",
        "Troubleshooting"
      ],
      "created": "2021-05-02 21:14:34",
      "modified": "2026-02-14 07:50:23",
      "commits": 8
    },
    {
      "source": "model.Rmd",
      "filename": "model.html",
      "title": "Model Structure",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Notation and Data Structure",
        "The Extended Multiple-Membership Multilevel Model",
        "Full Model Specification",
        "Group-Level Effect",
        "Hierarchical Nesting-Level Effect",
        "Aggregated Member-Level Effect",
        "Parameterizable Weight Functions",
        "Conventional MMMM: Fixed Weights",
        "Extended MMMM: Parameterizing Weights",
        "Testing Alternative Aggregation Mechanisms",
        "Generalized Outcomes",
        "Variance Decomposition and Intraclass Correlation",
        "Intraclass Correlation Coefficients (ICC)",
        "Extensions",
        "Multiple MM Blocks",
        "Autoregressive Random Effects",
        "Opposition Members",
        "Comparison with Conventional MMMM",
        "Model Assumptions",
        "Estimation",
        "Further Information"
      ],
      "created": "2021-05-02 21:14:34",
      "modified": "2026-02-12 10:46:41",
      "commits": 7
    }
  ],
  "_score": 6.051152522447381,
  "_indexed": true,
  "_nocasepkg": "bml",
  "_universes": [
    "benrosche"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.0",
      "date": "2026-05-20T10:43:21.000Z",
      "distro": "noble",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "a8dcbe0ed2616ee533aa62b760da3af9ef6d95fc4685da7ed7e6bb6136af10da",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.0",
      "date": "2026-05-20T10:43:22.000Z",
      "distro": "noble",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "c929d7e2fd848e4741ac410d5446c3bee27fc4b23610de00a23284e1593669f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.0",
      "date": "2026-05-20T10:48:57.000Z",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "e85f575bca0b0acc1f750351bea48c60f6e71f74531b61802b45b0d03cb7c866",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.0",
      "date": "2026-05-20T10:49:46.000Z",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "82ceb4496d67218e66ff92b40636857f1f705665ee2f5232d7c21fb8bcbc2bcb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.0",
      "date": "2026-05-20T10:42:32.000Z",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "3e07397bef762bf016754d4f35ad21b2cfd9fde40252e476d74cc3674b88e023",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.0",
      "date": "2026-05-20T10:42:30.000Z",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "064cc4cc4794f8f024c8c2285edbf0d6865892507a5d1888d7a0052a91e25a51",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.9.0",
      "date": "2026-05-20T10:42:27.000Z",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "c5c78af482d8faadda41497618064aa8f70ca565b3b5b6b9fe6d7322a4289984",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.0",
      "date": "2026-06-02T13:04:26.000Z",
      "commit": "26ccd4cff21310dd19f342443933142283270618",
      "fileid": "a2b19556e6399089951df28b9ab74d329b4e9867f8905944b8aa58c864e0b3d2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/benrosche/actions/runs/26157158512"
    }
  ]
}