{
  "_id": "6a5dd1639baadeef8ab54eea",
  "Package": "psborrow",
  "Title": "Bayesian Dynamic Borrowing with Propensity Score",
  "Version": "0.2.4",
  "Authors@R": "c(\nperson(given = \"Isaac\", family = \"Gravestock\", role = c(\"cre\", \"ctb\"), email = \"isaac.gravestock@roche.com\"),\nperson(given = \"Craig\", family = \"Gower-Page\", role = c(\"aut\"), email = \"craig.gower-page@roche.com\"),\nperson(given = \"Matt\", family = \"Secrest\", role = c(\"ctb\"), email = \"secrestm@gene.com\"),\nperson(given = \"Yichen\", family = \"Lu\", role = c(\"aut\")),\nperson(given = \"Aijing\", family = \"Lin\", role = c(\"aut\")),\nperson(\"F. Hoffmann-La Roche AG\", role = c(\"cph\", \"fnd\"))\n)",
  "Description": "A tool which aims to help evaluate the effect of external\nborrowing using an integrated approach described in Lewis et\nal., (2019) <doi:10.1080/19466315.2018.1497533> that combines\npropensity score and Bayesian dynamic borrowing methods.",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.1.2",
  "VignetteBuilder": "R.rsp",
  "Collate": "'zzz.R' 'add_cov.R' 'add_time.R' 'add_mcmc.R' 'apply_mcmc.R'\n'simu_cov.R' 'match_cov.R' 'simu_time.R' 'run_mcmc.R'\n'get_summary.R' 'utils.R'",
  "Config/testthat/edition": "3",
  "License": "Apache License (>= 2)",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-20 07:36:44 UTC",
    "User": "root"
  },
  "Author": "Isaac Gravestock [cre, ctb], Craig Gower-Page [aut], Matt\nSecrest [ctb], Yichen Lu [aut], Aijing Lin [aut], F.\nHoffmann-La Roche AG [cph, fnd]",
  "Maintainer": "Isaac Gravestock <isaac.gravestock@roche.com>",
  "Config/pak/sysreqs": "jags",
  "Repository": "https://gravesti.r-universe.dev",
  "Date/Publication": "2025-08-22 14:50:02 UTC",
  "RemoteUrl": "https://github.com/cran/psborrow",
  "RemoteRef": "HEAD",
  "RemoteSha": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
  "_user": "gravesti",
  "_type": "src",
  "_file": "psborrow_0.2.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/383e939aa3060aa41590e60870893e672d4d94d6a4e35330e41fc3ed4c3034af",
  "_filesize": 383755,
  "_sha256": "383e939aa3060aa41590e60870893e672d4d94d6a4e35330e41fc3ed4c3034af",
  "_expires": "2026-10-28T07:42:26.000Z",
  "_created": "2026-07-20T07:36:44.000Z",
  "_published": "2026-07-20T07:42:27.575Z",
  "_jobs": [
    {
      "job": 88296516028,
      "time": 282,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8454025309"
    },
    {
      "job": 88296515964,
      "time": 303,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8454031640"
    },
    {
      "job": 88296515909,
      "time": 271,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8454008424"
    },
    {
      "job": 88296515897,
      "time": 226,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8453996331"
    },
    {
      "job": 88295850495,
      "time": 234,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8453926689"
    },
    {
      "job": 88296515918,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8453970485"
    },
    {
      "job": 88296515921,
      "time": 229,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8454007333"
    },
    {
      "job": 88296515949,
      "time": 274,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8454022779"
    },
    {
      "job": 88296515930,
      "time": 247,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8454013321"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231",
  "_status": "success",
  "_upstream": "https://github.com/cran/psborrow",
  "_commit": {
    "id": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
    "author": "Isaac Gravestock <isaac.gravestock@roche.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.4\n",
    "time": 1755874202
  },
  "_maintainer": {
    "name": "Isaac Gravestock",
    "email": "isaac.gravestock@roche.com",
    "login": "gravesti",
    "description": "Statistical Engineering @ Roche",
    "uuid": 83659704
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "rjags",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "MatchIt",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "futile.logger",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "assertthat",
      "role": "Suggests"
    },
    {
      "package": "pkgload",
      "role": "Suggests"
    },
    {
      "package": "flexsurv",
      "role": "Suggests"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-34",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.2.4",
      "date": "2025-08-22"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "gravesti",
      "count": 4,
      "uuid": 83659704
    },
    {
      "user": "aijinglina21",
      "count": 1,
      "uuid": 80849779
    }
  ],
  "_userbio": {
    "uuid": 83659704,
    "type": "user",
    "name": "Isaac Gravestock",
    "followers": 8,
    "description": "Statistical Engineering @ Roche"
  },
  "_downloads": {
    "count": 370,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/psborrow"
  },
  "_searchresults": 4,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/psborrow.html",
    "manual.pdf"
  ],
  "_realowner": "gravesti",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-06-04"
    },
    {
      "version": "0.2.0",
      "date": "2022-05-16"
    },
    {
      "version": "0.2.1",
      "date": "2023-03-03"
    },
    {
      "version": "0.2.2",
      "date": "2025-02-19"
    },
    {
      "version": "0.2.3",
      "date": "2025-06-23"
    },
    {
      "version": "0.2.4",
      "date": "2025-08-22"
    }
  ],
  "_exports": [
    "apply_mcmc",
    "extract_samples",
    "get_summary",
    "match_cov",
    "plot_bias",
    "plot_hr",
    "plot_mse",
    "plot_power",
    "plot_type1error",
    "run_mcmc",
    "run_mcmc_p",
    "set_clin",
    "set_cov",
    "set_event",
    "set_n",
    "set_prior",
    "simu_cov",
    "simu_time"
  ],
  "_help": [
    {
      "page": "dot-clinClass-class",
      "title": "S4 Class for specifying parameters for enrollment time, drop-out pattern and analysis start time",
      "topics": [
        ".clinClass",
        ".clinClass-class"
      ]
    },
    {
      "page": "dot-covClass-class",
      "title": "S4 Class for setting up covariates",
      "topics": [
        ".covClass",
        ".covClass-class"
      ]
    },
    {
      "page": "dot-eventClass-class",
      "title": "S4 Class for setting parameters for time-to-events",
      "topics": [
        ".eventClass",
        ".eventClass-class"
      ]
    },
    {
      "page": "dot-priorClass-class",
      "title": "S4 Class for specifying prior distributions and predictors for MCMC methods",
      "topics": [
        ".priorClass",
        ".priorClass-class"
      ]
    },
    {
      "page": "apply_mcmc",
      "title": "Fit Dynamic Borrowing MCMC Model",
      "topics": [
        "apply_mcmc",
        "extract_samples",
        "summary.apply_mcmc"
      ]
    },
    {
      "page": "c-.covClass-method",
      "title": "Concatenate multiple '.covClasss' classes",
      "topics": [
        "c,.covClass-method"
      ]
    },
    {
      "page": "c-.priorClass-method",
      "title": "Concatenate multiple '.priorClasss' class",
      "topics": [
        "c,.priorClass-method"
      ]
    },
    {
      "page": "fix_col_names",
      "title": "Fix Column Names",
      "topics": [
        "fix_col_names"
      ]
    },
    {
      "page": "get_summary",
      "title": "Generate summary statistics of a simulation scenario",
      "topics": [
        "get_summary"
      ]
    },
    {
      "page": "is_psborrow_dev",
      "title": "Check if user is in psborrow development environment",
      "topics": [
        "is_psborrow_dev"
      ]
    },
    {
      "page": "match_cov",
      "title": "Match",
      "topics": [
        "match_cov"
      ]
    },
    {
      "page": "plot_bias",
      "title": "Plot bias",
      "topics": [
        "plot_bias"
      ]
    },
    {
      "page": "plot_hr",
      "title": "Plot mean posterior hazard ratio between treatment and control",
      "topics": [
        "plot_hr"
      ]
    },
    {
      "page": "plot_mse",
      "title": "Plot mean squared error (MSE)",
      "topics": [
        "plot_mse"
      ]
    },
    {
      "page": "plot_power",
      "title": "Plot power",
      "topics": [
        "plot_power"
      ]
    },
    {
      "page": "plot_type1error",
      "title": "Plot type 1 error",
      "topics": [
        "plot_type1error"
      ]
    },
    {
      "page": "ps_message",
      "title": "Conditional Message",
      "topics": [
        "ps_message"
      ]
    },
    {
      "page": "rej_est",
      "title": "Generate summary statistics for the MCMC chains",
      "topics": [
        "rej_est"
      ]
    },
    {
      "page": "run_mcmc",
      "title": "Run MCMC for multiple scenarios with provided data",
      "topics": [
        "run_mcmc"
      ]
    },
    {
      "page": "run_mcmc_p",
      "title": "Run MCMC for multiple scenarios with provided data with parallel processing",
      "topics": [
        "run_mcmc_p"
      ]
    },
    {
      "page": "set_clin",
      "title": "Specify parameters for enrollment time, drop-out pattern and analysis start time",
      "topics": [
        "set_clin"
      ]
    },
    {
      "page": "set_cov",
      "title": "Set up covariates",
      "topics": [
        "set_cov"
      ]
    },
    {
      "page": "set_event",
      "title": "Set up time-to-events",
      "topics": [
        "set_event"
      ]
    },
    {
      "page": "set_n",
      "title": "Simulate external trial indicator and treatment arm indicator",
      "topics": [
        "set_n"
      ]
    },
    {
      "page": "set_prior",
      "title": "Specify prior distributions and predictors for MCMC methods",
      "topics": [
        "set_prior"
      ]
    },
    {
      "page": "simu_cov",
      "title": "Simulate covariates",
      "topics": [
        "simu_cov",
        "simu_cov,matrix-method"
      ]
    },
    {
      "page": "simu_time",
      "title": "Simulate time-to-events for multiple scenarios",
      "topics": [
        "simu_time"
      ]
    }
  ],
  "_rundeps": [
    "backports",
    "chk",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "data.table",
    "doParallel",
    "dplyr",
    "farver",
    "foreach",
    "formatR",
    "futile.logger",
    "futile.options",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lambda.r",
    "lattice",
    "lifecycle",
    "magrittr",
    "MatchIt",
    "Matrix",
    "mvtnorm",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppProgress",
    "rjags",
    "rlang",
    "S7",
    "scales",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libjags",
      "package": "jags",
      "headers": "jags",
      "source": "jags",
      "version": "4.3.2-2.2604.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": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "analysis.html.asis",
      "filename": "analysis.html",
      "title": "Analysing data with psborrow",
      "engine": "R.rsp::asis",
      "headings": [
        "Analysing data with psborrow",
        "Analysis Model",
        "Example of use",
        "References"
      ],
      "created": "2022-05-16 16:40:02",
      "modified": "2022-05-16 16:40:02",
      "commits": 1
    },
    {
      "source": "user_guide.html.asis",
      "filename": "user_guide.html",
      "title": "User Guide: Dynamic Borrowing with psborrow",
      "engine": "R.rsp::asis",
      "headings": [
        "User Guide: Dynamic Borrowing with\npsborrow",
        "Install the package",
        "Simulate covariates",
        "Survival",
        "Bayesian analysis",
        "Posterior summary statistics",
        "Package Options"
      ],
      "created": "2022-05-16 16:40:02",
      "modified": "2022-05-16 16:40:02",
      "commits": 1
    }
  ],
  "_score": 2.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "psborrow",
  "_universes": [
    "gravesti"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.4",
      "date": "2026-07-20T07:39:24.000Z",
      "distro": "resolute",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/ff964e28214eadb02a9a0b9d5cb31bf3f0c91db5e9b797262a63de77406cc022",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.4",
      "date": "2026-07-20T07:39:28.000Z",
      "distro": "resolute",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/f2cc3410e5e86bfb448da1f216d0d9339e436cc7b3081d19d7bdbbb250eddcd4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.4",
      "date": "2026-07-20T07:39:18.000Z",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/5c2c607fc8622f4796bec4f66653a3e69fe666b8d6a9e6b2948124f96b754830",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.4",
      "date": "2026-07-20T07:38:44.000Z",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/34744699ceb3c9d5ad9c01947d636a5c8e4010d3ce95fdfdcd254934b89d9eea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.4",
      "date": "2026-07-20T07:39:09.000Z",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/203c05d9ebd0c6ad1a26057a13730eb4d1e7289d3860112ef20bbbc3d8c61786",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.4",
      "date": "2026-07-20T07:38:06.000Z",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/c4a747ffb23cd428e96fd2c6e5538a1c15d0f1694cdf2b0f0466113e77ccf95c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.4",
      "date": "2026-07-20T07:38:32.000Z",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/1731a12e1a972b2be09934c202a3908887bf2a648e2a091aeefae8a5f4ce7608",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.4",
      "date": "2026-07-20T07:38:12.000Z",
      "commit": "d2692171b48937fb9c865a9ae80f67b9af09d6b3",
      "fileid": "https://r2.ropensci.org/d0975223fee6e14f17581a0f5140ff6d83e774ea5a37579914b898e03ea42f47",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gravesti/actions/runs/29724955231"
    }
  ]
}