{
  "_id": "6a101c8cacfb0bcc41c87d26",
  "Package": "bmco",
  "Title": "Bayesian Analysis for Multivariate Categorical Outcomes",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Xynthia\", \"Kavelaars\", email = \"xynthia.kavelaars@ou.nl\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-1600-3153\")),\nperson(\"Joris\", \"Mulder\", role = \"ths\", comment = c(ORCID = \"0000-0001-7007-3086\")),\nperson(\"Maurits\", \"Kaptein\", role = \"ths\", comment = c(ORCID = \"0000-0002-6316-7524\")),\nperson(\"Dutch Research Council\", role = \"fnd\", comment = c(\"Grant no. 406.18.505\")))",
  "Description": "Provides Bayesian methods for comparing groups on multiple\nbinary outcomes. Includes basic tests using multivariate\nBernoulli distributions, subgroup analysis via generalized\nlinear models, and multilevel models for clustered data. For\nstatistical underpinnings, see Kavelaars, Mulder, and Kaptein\n(2020) <doi:10.1177/0962280220922256>, Kavelaars, Mulder, and\nKaptein (2024) <doi:10.1080/00273171.2024.2337340>, and\nKavelaars, Mulder, and Kaptein (2023)\n<doi:10.1186/s12874-023-02034-z>. An interactive shiny app to\nperform sample size computations is available.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "TRUE",
  "LazyDataCompression": "xz",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "RdMacros": "Rdpack",
  "URL": "https://github.com/XynthiaKavelaars/bmco,\nhttps://xynthia-kavelaars.shinyapps.io/bmco-pwr/,\nhttps://xynthiakavelaars.github.io/bmco/",
  "BugReports": "https://github.com/XynthiaKavelaars/bmco/issues",
  "Repository": "https://xynthiakavelaars.r-universe.dev",
  "Date/Publication": "2026-04-22 11:54:15 UTC",
  "RemoteUrl": "https://github.com/xynthiakavelaars/bmco",
  "RemoteRef": "HEAD",
  "RemoteSha": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 09:00:53 UTC",
    "User": "root"
  },
  "Author": "Xynthia Kavelaars [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1600-3153>),\nJoris Mulder [ths] (ORCID: <https://orcid.org/0000-0001-7007-3086>),\nMaurits Kaptein [ths] (ORCID: <https://orcid.org/0000-0002-6316-7524>),\nDutch Research Council [fnd] (Grant no. 406.18.505)",
  "Maintainer": "Xynthia Kavelaars <xynthia.kavelaars@ou.nl>",
  "MD5sum": "30ede91aad33cf2e50ff858af144c9cb",
  "_user": "xynthiakavelaars",
  "_type": "src",
  "_file": "bmco_0.1.0.tar.gz",
  "_fileid": "bc4ee1e0037298f89678fa242c7668ef2aa0cfd443c1fa0b548955f6079dc071",
  "_filesize": 3694834,
  "_sha256": "bc4ee1e0037298f89678fa242c7668ef2aa0cfd443c1fa0b548955f6079dc071",
  "_created": "2026-05-22T09:00:53.000Z",
  "_published": "2026-05-22T09:06:20.741Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77348922199,
      "time": 263,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156833555"
    },
    {
      "job": 77348922198,
      "time": 246,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156828023"
    },
    {
      "job": 77348922267,
      "time": 203,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156807684"
    },
    {
      "job": 77348922270,
      "time": 217,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156810285"
    },
    {
      "job": 77348273419,
      "time": 252,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156749527"
    },
    {
      "job": 77348922202,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156784112"
    },
    {
      "job": 77348922213,
      "time": 286,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156840770"
    },
    {
      "job": 77348922236,
      "time": 274,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156837011"
    },
    {
      "job": 77348922170,
      "time": 279,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156838627"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/xynthiakavelaars/bmco",
  "_commit": {
    "id": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
    "author": "XynthiaKavelaars <x.kavelaars@hotmail.com>",
    "committer": "XynthiaKavelaars <x.kavelaars@hotmail.com>",
    "message": "Merge branch 'main' of https://github.com/XynthiaKavelaars/bmco\n",
    "time": 1776858855
  },
  "_maintainer": {
    "name": "Xynthia Kavelaars",
    "email": "xynthia.kavelaars@ou.nl",
    "orcid": "0000-0003-1600-3153"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "abind",
      "role": "Imports"
    },
    {
      "package": "coda",
      "role": "Imports"
    },
    {
      "package": "MCMCpack",
      "role": "Imports"
    },
    {
      "package": "msm",
      "role": "Imports"
    },
    {
      "package": "pgdraw",
      "role": "Imports"
    },
    {
      "package": "tcltk",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "RefManageR",
      "role": "Suggests"
    }
  ],
  "_owner": "xynthiakavelaars",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-09",
      "n": 5
    },
    {
      "week": "2026-10",
      "n": 3
    },
    {
      "week": "2026-17",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "xynthiakavelaars",
      "count": 21,
      "uuid": 38853907
    }
  ],
  "_userbio": {
    "uuid": 38853907,
    "type": "user",
    "name": "Xynthia Kavelaars"
  },
  "_downloads": {
    "count": 527,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bmco"
  },
  "_devurl": "https://github.com/xynthiakavelaars/bmco",
  "_pkgdown": "https://xynthiakavelaars.github.io/bmco/",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bmco.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/xynthiakavelaars/bmco",
  "_realowner": "xynthiakavelaars",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-03-10"
    }
  ],
  "_exports": [
    "bglm",
    "bglmm",
    "bmvb"
  ],
  "_datasets": [
    {
      "name": "bglm_data",
      "title": "Simulated Single-Level Clinical Trial Data",
      "object": "bglm_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "group",
        "age",
        "y2",
        "y1"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "bglm_fit",
      "title": "Pre-computed bglm Example Fit",
      "object": "bglm_fit",
      "class": [
        "bglm"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "bglmm_data",
      "title": "Simulated Multilevel Clinical Trial Data",
      "object": "bglmm_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "group",
        "age",
        "y2",
        "y1"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    },
    {
      "name": "bglmm_fit",
      "title": "Pre-computed bglmm Example Fit",
      "object": "bglmm_fit",
      "class": [
        "bglmm"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "bmco-package",
      "title": "bmco: Bayesian Analysis for Multivariate Categorical Outcomes",
      "topics": [
        "bmco-package",
        "bmco"
      ]
    },
    {
      "page": "bglm",
      "title": "Bayesian Generalized Linear Model",
      "topics": [
        "bglm"
      ]
    },
    {
      "page": "bglm_data",
      "title": "Simulated Single-Level Clinical Trial Data",
      "topics": [
        "bglm_data"
      ]
    },
    {
      "page": "bglm_fit",
      "title": "Pre-computed bglm Example Fit",
      "topics": [
        "bglm_fit"
      ]
    },
    {
      "page": "bglmm",
      "title": "Bayesian Generalized Linear Mixed Model",
      "topics": [
        "bglmm"
      ]
    },
    {
      "page": "bglmm_data",
      "title": "Simulated Multilevel Clinical Trial Data",
      "topics": [
        "bglmm_data"
      ]
    },
    {
      "page": "bglmm_fit",
      "title": "Pre-computed bglmm Example Fit",
      "topics": [
        "bglmm_fit"
      ]
    },
    {
      "page": "bmvb",
      "title": "Bayesian Multivariate Bernoulli Test",
      "topics": [
        "bmvb"
      ]
    },
    {
      "page": "plot.bglm",
      "title": "Plot Method for bglm Objects",
      "topics": [
        "plot.bglm"
      ]
    },
    {
      "page": "plot.bglmm",
      "title": "Plot Method for bglmm Objects",
      "topics": [
        "plot.bglmm"
      ]
    },
    {
      "page": "print.bglm",
      "title": "Print Method for bglm Objects",
      "topics": [
        "print.bglm"
      ]
    },
    {
      "page": "print.bglmm",
      "title": "Print Method for bglmm Objects",
      "topics": [
        "print.bglmm"
      ]
    },
    {
      "page": "print.bmvb",
      "title": "Print Method for bmvb Objects",
      "topics": [
        "print.bmvb"
      ]
    },
    {
      "page": "print.summary.bglm",
      "title": "Print Method for summary.bglm Objects",
      "topics": [
        "print.summary.bglm"
      ]
    },
    {
      "page": "print.summary.bglmm",
      "title": "Print Method for summary.bglmm Objects",
      "topics": [
        "print.summary.bglmm"
      ]
    },
    {
      "page": "print.summary.bmvb",
      "title": "Print Method for summary.bmvb Objects",
      "topics": [
        "print.summary.bmvb"
      ]
    },
    {
      "page": "summary.bglm",
      "title": "Summary Method for bglm Objects",
      "topics": [
        "summary.bglm"
      ]
    },
    {
      "page": "summary.bglmm",
      "title": "Summary Method for bglmm Objects",
      "topics": [
        "summary.bglmm"
      ]
    },
    {
      "page": "summary.bmvb",
      "title": "Summary Method for bmvb Objects",
      "topics": [
        "summary.bmvb"
      ]
    }
  ],
  "_readme": "https://github.com/xynthiakavelaars/bmco/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "cli",
    "coda",
    "expm",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mcmc",
    "MCMCpack",
    "msm",
    "mvtnorm",
    "pgdraw",
    "pillar",
    "pkgconfig",
    "quantreg",
    "rbibutils",
    "Rcpp",
    "Rdpack",
    "rlang",
    "SparseM",
    "survival",
    "tibble",
    "utf8",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to bmco",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "The Problem",
        "Quick Start Example",
        "Three Analysis Functions",
        "1. bmvb(): Basic Comparison",
        "2. bglm(): Subgroup analysis",
        "3. bglmm(): With Clustering",
        "Decision Rules",
        "All Rule (Conjunctive)",
        "Any Rule (Disjunctive)",
        "Compensatory Rule (Weighted)",
        "Test Directions",
        "Right-sided Test",
        "Left-sided Test",
        "Understanding the Output",
        "Key Output Elements",
        "Posterior Samples",
        "Practical Considerations",
        "Sample Size",
        "MCMC Settings",
        "Missing Data",
        "Comparison with Frequentist Approaches",
        "Traditional approach",
        "Bayesian approach",
        "Advantages of Bayesian approach",
        "Next Steps",
        "References"
      ],
      "created": "2026-02-25 07:30:47",
      "modified": "2026-03-05 15:06:29",
      "commits": 3
    },
    {
      "source": "subgroup-analysis.Rmd",
      "filename": "subgroup-analysis.html",
      "title": "Subgroup Analysis with Multivariate Binary Outcomes",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "When to Use Subgroup Analysis",
        "Example: Clinical Trial with Age Effects",
        "Generate Data",
        "Full sample analysis",
        "Subgroup Analysis",
        "Three Methods for Population Definition",
        "1. Value Method: Specific Covariate Level",
        "2. Empirical Method: Observed Covariate Range",
        "3. Analytical Method: Theoretical Covariate Distribution",
        "Choosing a Method",
        "Comparing Results Across Methods",
        "Understanding Regression Coefficients",
        "Decision Rules",
        "All Rule",
        "Any Rule",
        "Compensatory Rule",
        "Practical Example: Subgroup Analysis",
        "Discrete Covariates",
        "Sample Size Considerations",
        "Specifying Prior Distributions",
        "Default Priors",
        "Custom Fixed Effects Priors",
        "Prior Sensitivity Analysis",
        "Further Reading",
        "MCMC Diagnostics",
        "Comparison: bmvb() and bglm()",
        "Advanced: Extracting Predictions",
        "Summary",
        "References"
      ],
      "created": "2026-02-25 07:30:47",
      "modified": "2026-03-05 15:06:29",
      "commits": 3
    },
    {
      "source": "multilevel-models.Rmd",
      "filename": "multilevel-models.html",
      "title": "Subgroup Analysis with Multivariate Binary Outcomes in Multilevel Data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "When to Use Multilevel Models",
        "Example: Educational Intervention Study",
        "Generate Example Data",
        "Fit Multilevel Model",
        "Interpretation",
        "Specifying Population of Interest",
        "Specific Ability Level",
        "Ability Range (Empirical)",
        "Ability Range (Analytical)",
        "Decision Rules with Multilevel Data",
        "All Rule (Conjunctive)",
        "Any Rule (Disjunctive)",
        "Compensatory Rule",
        "Specifying Prior Distributions",
        "Fixed Effects Priors (bglm and bglmm)",
        "Default Priors",
        "Custom Fixed Effects Priors",
        "Random Effects Priors",
        "Population-Level Random Effects",
        "Random Effects Covariance",
        "Prior Sensitivity Analysis",
        "Guidelines for Choosing Priors",
        "Common Mistakes to Avoid",
        "Further Reading",
        "MCMC Diagnostics",
        "Extracting Posterior Samples",
        "Data Requirements",
        "Common Issues and Solutions",
        "Warning: \"Very few clusters (J < 5)\"",
        "Warning: \"MCMC chains may not have converged\"",
        "Slow computation",
        "Summary",
        "References"
      ],
      "created": "2026-02-25 07:30:47",
      "modified": "2026-03-05 15:06:29",
      "commits": 3
    }
  ],
  "_score": 4.653212513775344,
  "_indexed": true,
  "_nocasepkg": "bmco",
  "_universes": [
    "xynthiakavelaars"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T09:03:23.000Z",
      "distro": "noble",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "f627e2a287b4990f6da9c3ed6dfb12e46e3a099ab14f33df24b957014a5fa8bf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T09:03:04.000Z",
      "distro": "noble",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "da3ea91a5c1c8b5c383fea0b7287bd08682ecce999c2cf50fe5a00a02bbdca79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T09:02:53.000Z",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "c69b54edd812f695206a3ca21c26a8ab80fee12da67b0db87bddff8c3b2fcb9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T09:03:01.000Z",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "7a3b12fac69d615c46f850f3e41ad7a29bd6ca024cee7577fc94f20f0f1cd333",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-22T09:02:59.000Z",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "ba9729a27e5b97f04b4b14afbee3063f7cba6cbac0113fed59385265ec3fa5f4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T09:02:19.000Z",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "6593345cf97d5ea37812195b6477972db7938c7a2deab8ec310af819771a2114",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T09:02:05.000Z",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "fc272dc057e958066af34302db8b6f7fbfe6ec0437ba40d8b34f2490ff2a0c37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T09:02:08.000Z",
      "commit": "9eabe8712309c8c233cb29ef13b95cb0ee2854e4",
      "fileid": "626331f5de1ffd858f3eeea55a21395275f3169fe8274b633c79bdf8149d9320",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xynthiakavelaars/actions/runs/26278402474"
    }
  ]
}