{
  "_id": "6aaa42f6ea78b3e62eac9e6b",
  "Package": "brmsmargins",
  "Title": "Bayesian Marginal Effects for 'brms' Models",
  "Version": "0.3.0",
  "Authors@R": "c(person(given = \"Joshua F.\",\nfamily = \"Wiley\",\nrole = c(\"aut\", \"cre\"),\nemail = \"jwiley.psych@gmail.com\",\ncomment = c(ORCID = \"0000-0002-0271-6702\")),\nperson(given = \"Donald\",\nfamily = \"Hedeker\",\nrole = c(\"aut\"),\nemail = \"hedeker@uchicago.edu\",\ncomment = c(ORCID = \"0000-0001-8134-6094\")))",
  "URL": "https://joshuawiley.com/brmsmargins/,\nhttps://github.com/JWiley/brmsmargins",
  "BugReports": "https://github.com/JWiley/brmsmargins/issues",
  "Description": "Calculate Bayesian marginal effects, average marginal\neffects, and marginal coefficients (also called population\naveraged coefficients) for models fit using the 'brms' package\nincluding fixed effects, mixed effects, and location scale\nmodels. These are based on marginal predictions that integrate\nout random effects if necessary (see for example\n<doi:10.1186/s12874-015-0046-6> and <doi:10.1111/biom.12707>).",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "true",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://jwiley.r-universe.dev",
  "Date/Publication": "2026-06-18 02:50:13 UTC",
  "RemoteUrl": "https://github.com/jwiley/brmsmargins",
  "RemoteRef": "HEAD",
  "RemoteSha": "1850d2dfa404b53af443e04e306afd8c5b48e018",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-09-16 07:02:51 UTC",
    "User": "root"
  },
  "Author": "Joshua F. Wiley [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-0271-6702>),\nDonald Hedeker [aut] (ORCID: <https://orcid.org/0000-0001-8134-6094>)",
  "Maintainer": "Joshua F. Wiley <jwiley.psych@gmail.com>",
  "_user": "jwiley",
  "_type": "src",
  "_file": "brmsmargins_0.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/eae5540463c869c79df151f15c2c5bb172ec543964dae86fe4b709054cc258fa",
  "_filesize": 259538,
  "_sha256": "eae5540463c869c79df151f15c2c5bb172ec543964dae86fe4b709054cc258fa",
  "_expires": "2026-12-25T07:19:16.000Z",
  "_created": "2026-09-16T07:02:51.000Z",
  "_published": "2026-09-16T07:19:17.949Z",
  "_jobs": [
    {
      "job": 104698267689,
      "time": 208,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10434372998"
    },
    {
      "job": 104698267767,
      "time": 250,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10434647060"
    },
    {
      "job": 104698267734,
      "time": 199,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10434208765"
    },
    {
      "job": 104698267827,
      "time": 242,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10434851592"
    },
    {
      "job": 104698267979,
      "time": 170,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10434648750"
    },
    {
      "job": 104698267718,
      "time": 434,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10435106020"
    },
    {
      "job": 104698267810,
      "time": 152,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10434941786"
    },
    {
      "job": 104698267769,
      "time": 497,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10434802400"
    },
    {
      "job": 104697017044,
      "time": 289,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10434845467"
    },
    {
      "job": 104698267707,
      "time": 196,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10434202358"
    },
    {
      "job": 104698267823,
      "time": 424,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10434378423"
    },
    {
      "job": 104698267796,
      "time": 237,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10435080081"
    },
    {
      "job": 104698267903,
      "time": 200,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10434527353"
    },
    {
      "job": 104698267867,
      "time": 475,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10435091051"
    },
    {
      "job": 104698267776,
      "time": 200,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10434975863"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379",
  "_status": "success",
  "_upstream": "https://github.com/jwiley/brmsmargins",
  "_commit": {
    "id": "1850d2dfa404b53af443e04e306afd8c5b48e018",
    "author": "Joshua F. Wiley <jwiley.psych@gmail.com>",
    "committer": "Joshua F. Wiley <jwiley.psych@gmail.com>",
    "message": "github action bumps and roxygen bump\n",
    "time": 1781751013
  },
  "_maintainer": {
    "name": "Joshua F. Wiley",
    "email": "jwiley.psych@gmail.com",
    "login": "jwiley",
    "twitter": "@WileyResearch",
    "description": "I am a lecturer in the Turner Institute for Brain and Mental Health and School of Psychological Sciences at Monash University",
    "uuid": 322716,
    "orcid": "0000-0002-0271-6702"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.12.0",
      "role": "Imports"
    },
    {
      "package": "extraoperators",
      "version": ">= 0.1.1",
      "role": "Imports"
    },
    {
      "package": "brms",
      "role": "Imports"
    },
    {
      "package": "bayestestR",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "margins",
      "role": "Suggests"
    },
    {
      "package": "betareg",
      "role": "Suggests"
    }
  ],
  "_owner": "jwiley",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-39",
      "n": 7
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 7
    },
    {
      "week": "2026-15",
      "n": 4
    },
    {
      "week": "2026-18",
      "n": 1
    },
    {
      "week": "2026-25",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 21,
  "_contributors": [
    {
      "user": "jwiley",
      "count": 107,
      "uuid": 322716
    },
    {
      "user": "jwrozelle",
      "count": 2,
      "uuid": 3331999
    }
  ],
  "_userbio": {
    "uuid": 322716,
    "type": "user",
    "name": "Joshua F. Wiley, Ph.D.",
    "followers": 56,
    "description": "I am a lecturer in the Turner Institute for Brain and Mental Health and School of Psychological Sciences at Monash University"
  },
  "_downloads": {
    "count": 1834,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/brmsmargins"
  },
  "_devurl": "https://github.com/jwiley/brmsmargins",
  "_pkgdown": "https://joshuawiley.com/brmsmargins/",
  "_searchresults": 43,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/brmsmargins.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/jwiley/brmsmargins",
  "_realowner": "jwiley",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2021-12-16"
    },
    {
      "version": "0.2.0",
      "date": "2022-05-18"
    },
    {
      "version": "0.2.1",
      "date": "2025-09-26"
    },
    {
      "version": "0.3.0",
      "date": "2026-04-06"
    }
  ],
  "_exports": [
    "brmsmargins",
    "bsummary",
    "integratemvn",
    "integratemvt",
    "integratere",
    "lmcpp",
    "marginalcoef",
    "prediction",
    "rowBootMeans",
    "tab2mat"
  ],
  "_help": [
    {
      "page": "brmsmargins",
      "title": "Calculate Marginal Effects from 'brms' Models",
      "topics": [
        "brmsmargins"
      ]
    },
    {
      "page": "bsummary",
      "title": "Personal Preference Based Bayesian Summary",
      "topics": [
        "bsummary"
      ]
    },
    {
      "page": "integratemvn",
      "title": "Integrate over Multivariate Normal Random Effects",
      "topics": [
        "integratemvn",
        "integratemvnR"
      ]
    },
    {
      "page": "integratemvt",
      "title": "Integrate over Multivariate Student-t Random Effects",
      "topics": [
        "integratemvt",
        "integratemvtR"
      ]
    },
    {
      "page": "integratere",
      "title": "Integrate over Random Effects",
      "topics": [
        "integratere",
        "integratereR"
      ]
    },
    {
      "page": "lmcpp",
      "title": "Fast Linear Regression",
      "topics": [
        "lmcpp"
      ]
    },
    {
      "page": "marginalcoef",
      "title": "Marginal Coefficients from a 'brms' Model",
      "topics": [
        "marginalcoef"
      ]
    },
    {
      "page": "prediction",
      "title": "Marginal Posterior Predictions from a 'brms' Model",
      "topics": [
        "prediction"
      ]
    },
    {
      "page": "rowBootMeans",
      "title": "Bootstrap Row Means",
      "topics": [
        "rowBootMeans"
      ]
    },
    {
      "page": "tab2mat",
      "title": "Convert a Row of a Table to a Square Matrix",
      "topics": [
        "tab2mat",
        "tab2matR"
      ]
    }
  ],
  "_readme": "https://github.com/jwiley/brmsmargins/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "bayesplot",
    "bayestestR",
    "BH",
    "bridgesampling",
    "brms",
    "Brobdingnag",
    "callr",
    "checkmate",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "data.table",
    "datawizard",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "extraoperators",
    "farver",
    "future",
    "future.apply",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "insight",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "loo",
    "magrittr",
    "Matrix",
    "matrixStats",
    "mgcv",
    "mvtnorm",
    "nleqslv",
    "nlme",
    "numDeriv",
    "otel",
    "parallelly",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "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"
    }
  ],
  "_vignettes": [
    {
      "source": "fixed-effects-marginaleffects.Rmd",
      "filename": "fixed-effects-marginaleffects.html",
      "title": "Marginal Effects for Fixed Effects Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What are marginal effects?",
        "Average Marginal Effect (AME)",
        "AMEs for Logistic Regression",
        "AMEs for Poisson Regression",
        "AMEs for Negative Binomial Regression",
        "AMEs for Binomial Regression",
        "References"
      ],
      "created": "2021-11-26 20:30:02",
      "modified": "2026-04-03 06:06:46",
      "commits": 11
    },
    {
      "source": "location-scale-marginaleffects.Rmd",
      "filename": "location-scale-marginaleffects.html",
      "title": "Marginal Effects for Location Scale Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "AMEs for Fixed Effects Location Scale Models",
        "AMEs for Mixed Effects Location Scale Models"
      ],
      "created": "2021-11-28 07:30:42",
      "modified": "2026-04-03 06:06:46",
      "commits": 12
    },
    {
      "source": "mixed-effects-marginaleffects.Rmd",
      "filename": "mixed-effects-marginaleffects.html",
      "title": "Marginal Effects for Mixed Effects Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Integrating out Random Effects",
        "Using brmsmargins()",
        "Mixed Effects Logistic Regression",
        "AMEs",
        "Marginal Coefficients",
        "Mixed Effects Poisson Regression",
        "Mixed Effects Negative Binomial Regression",
        "Mixed Effects Binomial Regression",
        "Centered Categorical Predictors",
        "Interactions and Marginal Effects",
        "References"
      ],
      "created": "2021-11-26 20:30:02",
      "modified": "2026-04-03 06:06:46",
      "commits": 18
    }
  ],
  "_score": 7.240276380717447,
  "_indexed": true,
  "_nocasepkg": "brmsmargins",
  "_universes": [
    "jwiley"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-09-16T07:06:01.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/21e3e8ed149cf3692232e015ca356e27c4800544dd4683d3618164da74872a34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-09-16T07:06:23.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/69e899c096d1d7211a60fd483f54257e486ab3a485d494889715932df6e9a9d9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-09-16T07:05:56.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/d3fab8a149443704e7f465a70e536e01e0a37eafdfa7b833418104fb5578a9f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-09-16T07:06:17.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/5c2e5823bf389d193d11aba6c4b1d315662455ed496d8b874a8b92c9bf656d83",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-09-16T07:17:25.000Z",
      "arch": "aarch64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/b980344f9391280c526d14be4eadb892cc953a0950bf78457507354b0fd35d08",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-09-16T07:08:23.000Z",
      "arch": "x86_64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/08bd0623e80cc553ffa07635e96827419fd2ad2441022f096f4ce818e0b27253",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-09-16T07:17:23.000Z",
      "arch": "aarch64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/a61ac9756ac7cdcb358de84570a9cff56db40f8372220814b495afa23d67876c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-09-16T07:09:05.000Z",
      "arch": "x86_64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/07b364e10adfa66c339110286038c7a7b989ea046795ee22473cc06bb72d7e8b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-09-16T07:06:22.000Z",
      "arch": "emscripten",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/5e0f09cfe43d718dfcf2743f11ed706203e5c4b6700dfa86cc637746a6f748f7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-09-16T07:08:27.000Z",
      "arch": "aarch64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/4a902f13fdb8bd5865a7ed7790eb05d7538d27f891f20715a7e1d8b0d95d2619",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-09-16T07:05:09.000Z",
      "arch": "x86_64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/2ef5e30d30d0701e8a6d9fc2f48591ea8d8bdd51645ef72e67220ad2f0fdbcb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-09-16T07:04:50.000Z",
      "arch": "x86_64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/216cc8d3ef8fb4f5799a9188e9f42eb80c1ea9da4047e1e1dab16071302f6c2a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-09-16T07:09:25.000Z",
      "arch": "aarch64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/901a29f13bfb86bdaf241581cf486e52a2dfa960d68c8d63a737dfdc5a55df4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-09-16T07:04:52.000Z",
      "arch": "x86_64",
      "commit": "1850d2dfa404b53af443e04e306afd8c5b48e018",
      "fileid": "https://r2.ropensci.org/a1eea5bbd54b5e880ca11a8d138a520a6f2c1a4cca8a2a52d266f4de31d283d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jwiley/actions/runs/35066195379"
    }
  ]
}