{
  "_id": "6a325e883efcd9bda4383b92",
  "Type": "Package",
  "Package": "bayesmsm",
  "Title": "Fitting Bayesian Marginal Structural Models for Longitudinal\nObservational Data",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Kuan\", \"Liu\", , \"kuan.liu@utoronto.ca\", role = c(\"aut\", \"cre\",\"cph\"),\ncomment = c(ORCID = \"0000-0002-5017-1276\")),\nperson(\"Xiao\", \"Yan\", , \"Clarence.YXA@gmail.com\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-9712-1199\")),\nperson(\"Martin\", \"Urner\", , \"martin.urner@uhn.ca\", role = \"aut\",\ncomment = c(ORCID = \"0000-0003-1133-4885\"))\n)",
  "Maintainer": "Kuan Liu <kuan.liu@utoronto.ca>",
  "Description": "Implements Bayesian marginal structural models for causal\neffect estimation with time-varying treatment and confounding.\nIt includes an extension to handle informative right censoring.\nThe Bayesian importance sampling weights are estimated using\nJAGS. See Saarela (2015) <doi:10.1111/biom.12269> for\nmethodological details.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/Kuan-Liu-Lab/bayesmsm",
  "BugReports": "https://github.com/Kuan-Liu-Lab/bayesmsm/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "NeedsCompilation": "no",
  "RoxygenNote": "7.3.2",
  "Packaged": {
    "Date": "2026-06-17 08:41:03 UTC",
    "User": "root"
  },
  "Author": "Kuan Liu [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-5017-1276>), Xiao Yan [aut]\n(ORCID: <https://orcid.org/0000-0001-9712-1199>), Martin Urner\n[aut] (ORCID: <https://orcid.org/0000-0003-1133-4885>)",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-06-17 06:00:02 UTC",
  "RemoteUrl": "https://github.com/cran/bayesmsm",
  "RemoteRef": "HEAD",
  "RemoteSha": "10d5e447f497b682606178f9ea982d7d8f7546e4",
  "MD5sum": "1936d26754d8e9679b1bce7506501aad",
  "_user": "cran",
  "_type": "src",
  "_file": "bayesmsm_1.0.0.tar.gz",
  "_fileid": "4458a658cbc3d75dee81e1fd307440cae2f44243c9d4b5fa68ac2df529f87d65",
  "_filesize": 933010,
  "_sha256": "4458a658cbc3d75dee81e1fd307440cae2f44243c9d4b5fa68ac2df529f87d65",
  "_created": "2026-06-17T08:41:03.000Z",
  "_published": "2026-06-17T08:44:56.162Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81853840132,
      "time": 176,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7690308513"
    },
    {
      "job": 81853840145,
      "time": 191,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7690310875"
    },
    {
      "job": 81853185845,
      "time": 211,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7690235410"
    },
    {
      "job": 81853840198,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7690292524"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27676522020",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/bayesmsm",
  "_commit": {
    "id": "10d5e447f497b682606178f9ea982d7d8f7546e4",
    "author": "Kuan Liu <kuan.liu@utoronto.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1750140002
  },
  "_maintainer": {
    "name": "Kuan Liu",
    "email": "kuan.liu@utoronto.ca",
    "login": "kuan-liu",
    "description": "",
    "uuid": 45974798,
    "orcid": "0000-0002-5017-1276"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "coda",
      "version": ">= 0.19-4",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "MCMCpack",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "R2jags",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-25",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "kuan-liu",
      "count": 1,
      "uuid": 45974798
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 609,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 204,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bayesmsm"
  },
  "_devurl": "https://github.com/kuan-liu-lab/bayesmsm",
  "_searchresults": 17,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bayesmsm.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",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kuan-liu-lab/bayesmsm",
  "_realowner": "kuan-liu-lab",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-06-17"
    }
  ],
  "_exports": [
    "bayesmsm",
    "bayesweight",
    "bayesweight_cen",
    "plot_APO",
    "plot_ATE",
    "plot_est_box",
    "simData",
    "summary_bayesmsm"
  ],
  "_help": [
    {
      "page": "bayesmsm",
      "title": "Bayesian Marginal Structural Model Bootstrap Estimation",
      "topics": [
        "bayesmsm"
      ]
    },
    {
      "page": "bayesweight",
      "title": "Bayesian Treatment Effect Weight Estimation Using JAGS",
      "topics": [
        "bayesweight"
      ]
    },
    {
      "page": "bayesweight_cen",
      "title": "Bayesian Treatment Effect Weight Estimation for Censored Data",
      "topics": [
        "bayesweight_cen"
      ]
    },
    {
      "page": "calculate_effect",
      "title": "This function to calculate the causal effect of an intervention given the parameter estimates and intervention levels",
      "topics": [
        "calculate_effect"
      ]
    },
    {
      "page": "plot_APO",
      "title": "Plot Average Potential Outcomes (APO)",
      "topics": [
        "plot_APO"
      ]
    },
    {
      "page": "plot_ATE",
      "title": "Plot Average Treatment Effect Density from bayesmsm output",
      "topics": [
        "plot_ATE"
      ]
    },
    {
      "page": "plot_est_box",
      "title": "Error bar plots for causal treatment effects",
      "topics": [
        "plot_est_box"
      ]
    },
    {
      "page": "simData",
      "title": "Generate synthetic longitudinal data with optional right-censoring",
      "topics": [
        "simData"
      ]
    },
    {
      "page": "summary_bayesmsm",
      "title": "Summary function to generate result table from bayesmsm",
      "topics": [
        "summary_bayesmsm"
      ]
    }
  ],
  "_readme": "https://github.com/cran/bayesmsm/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "boot",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "doParallel",
    "farver",
    "foreach",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mcmc",
    "MCMCpack",
    "quantreg",
    "R2jags",
    "R2WinBUGS",
    "R6",
    "RColorBrewer",
    "rjags",
    "rlang",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "vctrs",
    "viridisLite",
    "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"
    },
    {
      "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": "bayesmsm-censoring.Rmd",
      "filename": "bayesmsm-censoring.html",
      "title": "bayesmsm for longitudinal data with informative right-censoring",
      "author": "Xiao Yan, Kuan Liu",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2025-06-17 06:00:02",
      "modified": "2025-06-17 06:00:02",
      "commits": 1
    },
    {
      "source": "bayesmsm-nocensoring.Rmd",
      "filename": "bayesmsm-nocensoring.html",
      "title": "bayesmsm for longitudinal data without right-censoring",
      "author": "Xiao Yan, Kuan Liu",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2025-06-17 06:00:02",
      "modified": "2025-06-17 06:00:02",
      "commits": 1
    }
  ],
  "_score": 3.230448921378274,
  "_indexed": false,
  "_nocasepkg": "bayesmsm",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://kuan-liu-lab.r-universe.dev/bayesmsm",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-17T08:43:45.000Z",
      "distro": "noble",
      "commit": "10d5e447f497b682606178f9ea982d7d8f7546e4",
      "fileid": "27d2a80036938d2c1e0bf117dc66dba9cac5b7301bbaa797f5545c0d2ff5622b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27676522020"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-17T08:43:54.000Z",
      "distro": "noble",
      "commit": "10d5e447f497b682606178f9ea982d7d8f7546e4",
      "fileid": "66a643345b6a4efe0cf5476ba76e319b526d2fc572e09fa883590f3ad4a73613",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27676522020"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-17T08:43:53.000Z",
      "commit": "10d5e447f497b682606178f9ea982d7d8f7546e4",
      "fileid": "ae9033db8172b7483f8f4196f35a4033cb008aa998869f6a637d5d59d1879775",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27676522020"
    }
  ]
}