Package: bayesmsm 1.0.0

Kuan Liu

bayesmsm: Fitting Bayesian Marginal Structural Models for Longitudinal Observational Data

Implements Bayesian marginal structural models for causal effect estimation with time-varying treatment and confounding. It includes an extension to handle informative right censoring. The Bayesian importance sampling weights are estimated using JAGS. See Saarela (2015) <doi:10.1111/biom.12269> for methodological details.

Authors:Kuan Liu [aut, cre, cph], Xiao Yan [aut], Martin Urner [aut]

bayesmsm_1.0.0.tar.gz
bayesmsm_1.0.0.zip(r-4.7-any)bayesmsm_1.0.0.zip(r-4.6-any)
bayesmsm_1.0.0.tar.gz(r-4.7-any)bayesmsm_1.0.0.tar.gz(r-4.6-any)
bayesmsm_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
bayesmsm/json (API)

# Install 'bayesmsm' in R:
install.packages('bayesmsm', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kuan-liu-lab/bayesmsm/issues

Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

jagscpp

3.23 score 17 scripts 273 downloads 8 exports 39 dependencies

Last updated from:10d5e447f4. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK147
source / vignettesOK256
linux-releaseOK172
windows-develOK134
windows-releaseOK108
wasm-releaseOK118

Exports:bayesmsmbayesweightbayesweight_cenplot_APOplot_ATEplot_est_boxsimDatasummary_bayesmsm

Dependencies:abindbootclicodacodetoolscpp11doParallelfarverforeachggplot2gluegtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmcmcMCMCpackquantregR2jagsR2WinBUGSR6RColorBrewerrjagsrlangS7scalesSparseMstringistringrsurvivalvctrsviridisLitewithr

bayesmsm for longitudinal data with informative right-censoring
Introduction | Simulated longitudinal observational data with right-censoring | Bayesian treatment effect weight estimation using bayesweight_cen | Bayesian non-parametric bootstrap to maximize the utility function with respect to the causal effect using bayesmsm | Visualization functions: plot_ATE, plot_APO, plot_est_box | Reference

Last update: 2025-06-17
Started: 2025-06-17

bayesmsm for longitudinal data without right-censoring
Introduction | Simulated longitudinal observational data without right-censoring | Bayesian treatment effect weight estimation using bayesweight | Bayesian non-parametric bootstrap to maximize the utility function with respect to the causal effect using bayesmsm | Visualization functions: plot_ATE, plot_APO, plot_est_box | Reference

Last update: 2025-06-17
Started: 2025-06-17