{
  "_id": "6a10571facfb0bcc41ca2e94",
  "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",
  "Roxygen": "list(markdown = TRUE)",
  "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)",
  "Config/pak/sysreqs": "jags",
  "Repository": "https://pharmaverse.r-universe.dev",
  "Date/Publication": "2025-08-22 12:30:54 UTC",
  "RemoteUrl": "https://github.com/Genentech/psborrow",
  "RemoteRef": "HEAD",
  "RemoteSha": "34c21319ea33409a19e551e25b2c50c6f3193f90",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-09 07:27:34 UTC",
    "User": "root"
  },
  "Author": "Isaac Gravestock [cre, ctb],\nCraig Gower-Page [aut],\nMatt Secrest [ctb],\nYichen Lu [aut],\nAijing Lin [aut],\nF. Hoffmann-La Roche AG [cph, fnd]",
  "Maintainer": "Isaac Gravestock <isaac.gravestock@roche.com>",
  "MD5sum": "113221a6ed0e4b16ce85525565a3856e",
  "_user": "pharmaverse",
  "_type": "src",
  "_file": "psborrow_0.2.4.tar.gz",
  "_fileid": "c90e8b01a6fb58b39a6c78a17182261fd11522c2c30e06889fb895f667185918",
  "_filesize": 387347,
  "_sha256": "c90e8b01a6fb58b39a6c78a17182261fd11522c2c30e06889fb895f667185918",
  "_created": "2026-05-09T07:27:34.000Z",
  "_published": "2026-05-22T13:16:15.283Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77387034407,
      "time": 267,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6893993180"
    },
    {
      "job": 77387034560,
      "time": 260,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893992568"
    },
    {
      "job": 77387034321,
      "time": 133,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6893980031"
    },
    {
      "job": 77387034173,
      "time": 192,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893986045"
    },
    {
      "job": 77387033022,
      "time": 191,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893967695"
    },
    {
      "job": 77387033448,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7161413494"
    },
    {
      "job": 77387034319,
      "time": 247,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6893991293"
    },
    {
      "job": 77387034439,
      "time": 228,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6893989544"
    },
    {
      "job": 77387033876,
      "time": 348,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894001224"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/Genentech/psborrow",
  "_commit": {
    "id": "34c21319ea33409a19e551e25b2c50c6f3193f90",
    "author": "Isaac Gravestock <83659704+gravesti@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "fix ggplot argument (#77)\n\n",
    "time": 1755865854
  },
  "_maintainer": {
    "name": "Isaac Gravestock",
    "email": "isaac.gravestock@roche.com",
    "login": "gravesti",
    "uuid": 83659704
  },
  "_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": "genentech",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-24",
      "n": 1
    },
    {
      "week": "2025-26",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2.4",
      "date": "2025-08-22"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mattsecrest",
      "count": 39,
      "uuid": 35199424
    },
    {
      "user": "yichenlu47",
      "count": 23,
      "uuid": 21373486
    },
    {
      "user": "gravesti",
      "count": 22,
      "uuid": 83659704
    },
    {
      "user": "danielinteractive",
      "count": 1,
      "uuid": 1071227
    },
    {
      "user": "arkadiuszbeer",
      "count": 1,
      "uuid": 86738093
    }
  ],
  "_userbio": {
    "uuid": 84541169,
    "type": "organization",
    "name": "pharmaverse"
  },
  "_downloads": {
    "count": 579,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/psborrow"
  },
  "_devurl": "https://github.com/genentech/psborrow",
  "_searchresults": 4,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_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",
    "extra/readme.html",
    "extra/readme.md",
    "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"
      ]
    }
  ],
  "_readme": "https://github.com/Genentech/psborrow/raw/HEAD/README.md",
  "_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.2404.0",
      "name": "jags",
      "homepage": "https://mcmc-jags.sourceforge.io",
      "description": "Just Another Gibbs Sampler for Bayesian MCMC - binary\nJAGS is Just Another Gibbs Sampler.  It is a program for analysis of\nBayesian hierarchical models using Markov Chain Monte Carlo (MCMC)\nsimulation not wholly unlike BUGS.\n\nJAGS was written with three aims in mind:\n* To have an engine for the BUGS language that runs on Unix\n* To be extensible, allowing users to write their own functions,\ndistributions and samplers.\n* To be a plaftorm for experimentation with ideas in Bayesian modelling\n\nThis package contains the 'jags' binary as well as the associated\nshared library modules loaded by the 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": "analysis.html.asis",
      "filename": "analysis.html",
      "title": "Analysing data with psborrow",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2022-05-16 14:33:34",
      "modified": "2022-05-16 14:33:34",
      "commits": 1
    },
    {
      "source": "user_guide.html.asis",
      "filename": "user_guide.html",
      "title": "User Guide: Dynamic Borrowing with psborrow",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2022-05-16 14:33:34",
      "modified": "2022-05-16 14:33:34",
      "commits": 1
    }
  ],
  "_score": 4.079181246047625,
  "_indexed": false,
  "_nocasepkg": "psborrow",
  "_universes": [
    "pharmaverse"
  ],
  "_indexurl": "https://gravesti.r-universe.dev/psborrow",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.4",
      "date": "2026-05-09T07:30:07.000Z",
      "distro": "noble",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "52b16b3cdea52d1b6f4b9134b8053c1914d4bd40dadc094545c434a8c7724f80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.4",
      "date": "2026-05-09T07:30:06.000Z",
      "distro": "noble",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "5445be3d3b6dbe6b5449ef61bc4bde951b93ef17794126ded53a98631c85774b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.4",
      "date": "2026-05-09T07:29:00.000Z",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "066cfeb664bd93400eef076ac24f2958fd957668db187711d96ae7dd7e0f257a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.4",
      "date": "2026-05-09T07:29:29.000Z",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "c10bb0659a77bddb595e2cd15e02c65ebfbfa31cf7f94b745a6e289ad7a63927",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.4",
      "date": "2026-05-09T07:29:09.000Z",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "bab44c4b9d90434c8ca0d667102f0f63dfb9d16bd970977a03ae87034e42c629",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.4",
      "date": "2026-05-09T07:28:50.000Z",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "61835180463053bbf57b154362b2c3b3ef7b6dd8dc8ca9ec9f40b9b8f5dd61e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.4",
      "date": "2026-05-09T07:30:27.000Z",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "8f489153f4c804163512e07b5367a4903925d64ebed5036621c522a35e3280ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.4",
      "date": "2026-05-22T13:15:48.000Z",
      "commit": "34c21319ea33409a19e551e25b2c50c6f3193f90",
      "fileid": "d8b386e6c930388f491b841443e997f5a9daf1669c6d37ee6ea2ca311607df95",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pharmaverse/actions/runs/25595261781"
    }
  ]
}