{
  "_id": "6a1f339bb401979e734281cc",
  "Package": "BayesFBHborrow",
  "Title": "Bayesian Dynamic Borrowing with Flexible Baseline Hazard\nFunction",
  "Version": "2.0.2",
  "Authors@R": "c(\nperson(given = \"Darren\", family = \"Scott\", role = c(\"aut\", \"cre\"), email = \"darren.scott@astrazeneca.com\"),\nperson(given = \"Sophia\", family = \"Axillus\", role = c(\"aut\"), email = \"sophia.axillus@astrazeneca.com\")\n)",
  "Description": "Allows Bayesian borrowing from a historical dataset for\ntime-to- event data. A flexible baseline hazard function is\nachieved via a piecewise exponential likelihood with time\nvarying split points and smoothing prior on the historic\nbaseline hazards. The method is described in Scott and Lewin\n(2024) <doi:10.48550/arXiv.2401.06082>, and the software paper\nis in Axillus et al. (2024) <doi:10.48550/arXiv.2408.04327>.",
  "License": "Apache License (>= 2)",
  "Encoding": "UTF-8",
  "Author": "Darren Scott [aut, cre], Sophia Axillus [aut]",
  "RoxygenNote": "7.3.1",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-15 07:06:30 UTC",
    "User": "root"
  },
  "Maintainer": "Darren Scott <darren.scott@astrazeneca.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-09-17 02:32:25 UTC",
  "RemoteUrl": "https://github.com/cran/BayesFBHborrow",
  "RemoteRef": "HEAD",
  "RemoteSha": "65eb3ad6cfd14102383864ec25d5977ee0dacfe8",
  "MD5sum": "e444e488e965451fce4df38d8b0d0bc9",
  "_user": "cran",
  "_type": "src",
  "_file": "BayesFBHborrow_2.0.2.tar.gz",
  "_fileid": "35ea105ea5aa969a223805a4bd011b43f0bb49bdfeee4733caff169fabb48f3f",
  "_filesize": 242553,
  "_sha256": "35ea105ea5aa969a223805a4bd011b43f0bb49bdfeee4733caff169fabb48f3f",
  "_created": "2026-05-15T07:06:30.000Z",
  "_published": "2026-06-02T19:48:43.243Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79158254438,
      "time": 402,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7012015057"
    },
    {
      "job": 79158254738,
      "time": 349,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7012002042"
    },
    {
      "job": 79158254308,
      "time": 201,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7011915404"
    },
    {
      "job": 79158253994,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7368186132"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/25905110391",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/BayesFBHborrow",
  "_commit": {
    "id": "65eb3ad6cfd14102383864ec25d5977ee0dacfe8",
    "author": "Darren Scott <darren.scott@astrazeneca.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.0.2\n",
    "time": 1726540345
  },
  "_maintainer": {
    "name": "Darren Scott",
    "email": "darren.scott@astrazeneca.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "invgamma",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "readxl",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggfortify",
      "role": "Suggests"
    },
    {
      "package": "condSURV",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 229,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BayesFBHborrow"
  },
  "_searchresults": 4,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BayesFBHborrow.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.0.2",
      "date": "2024-01-11"
    },
    {
      "version": "1.0.1",
      "date": "2024-02-27"
    },
    {
      "version": "2.0.1",
      "date": "2024-06-24"
    },
    {
      "version": "2.0.2",
      "date": "2024-09-16"
    }
  ],
  "_exports": [
    "BayesFBHborrow",
    "GibbsMH",
    "group_summary",
    "init_lambda_hyperparameters"
  ],
  "_datasets": [
    {
      "name": "piecewise_exp_cc",
      "title": "Example data, simulated from a piecewise exponential model.",
      "object": "piecewise_exp_cc",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "tte",
        "event",
        "X_trt"
      ],
      "rows": 250,
      "table": true,
      "tojson": true
    },
    {
      "name": "piecewise_exp_hist",
      "title": "Example data, simulated from a piecewise exponential model.",
      "object": "piecewise_exp_hist",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "tte",
        "event"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    },
    {
      "name": "weibull_cc",
      "title": "Example data, simulated from a Weibull distribution.",
      "object": "weibull_cc",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "tte",
        "event",
        "X_trt"
      ],
      "rows": 250,
      "table": true,
      "tojson": true
    },
    {
      "name": "weibull_hist",
      "title": "Example data, simulated from a Weibull distribution",
      "object": "weibull_hist",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "tte",
        "event"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dot-beta_MH_MALA",
      "title": "Proposal beta with a Metropolis Adjusted Langevin (MALA)",
      "topics": [
        ".beta_MH_MALA"
      ]
    },
    {
      "page": "dot-beta_MH_NR",
      "title": "Newton Raphson MH move",
      "topics": [
        ".beta_MH_NR"
      ]
    },
    {
      "page": "dot-beta_MH_RW",
      "title": "Beta Metropolis-Hastings random walk move",
      "topics": [
        ".beta_MH_RW"
      ]
    },
    {
      "page": "dot-beta_mom",
      "title": "Mean for MALA using derivative for beta proposal",
      "topics": [
        ".beta_mom"
      ]
    },
    {
      "page": "dot-beta_mom.NR.fun",
      "title": "First and second derivative of target for mode and variance of proposal",
      "topics": [
        ".beta_mom.NR.fun"
      ]
    },
    {
      "page": "dot-beta.MH.RW.glm",
      "title": "Beta MH RW sampler from freq PEM fit",
      "topics": [
        ".beta.MH.RW.glm"
      ]
    },
    {
      "page": "dot-birth_move",
      "title": "Birth move in RJMCMC",
      "topics": [
        ".birth_move"
      ]
    },
    {
      "page": "dot-dataframe_fun",
      "title": "Create data.frame for piecewise exponential models",
      "topics": [
        ".dataframe_fun"
      ]
    },
    {
      "page": "dot-death_move",
      "title": "Death move in RJMCMC",
      "topics": [
        ".death_move"
      ]
    },
    {
      "page": "dot-glmFit",
      "title": "Fit frequentist piecewise exponential model for MLE and information matrix of beta",
      "topics": [
        ".glmFit"
      ]
    },
    {
      "page": "dot-ICAR_calc",
      "title": "Calculate covariance matrix in the MVN-ICAR",
      "topics": [
        ".ICAR_calc"
      ]
    },
    {
      "page": "dot-input_check",
      "title": "Input checker",
      "topics": [
        ".input_check"
      ]
    },
    {
      "page": "dot-J_RJMCMC",
      "title": "RJMCMC (with Bayesian Borrowing)",
      "topics": [
        ".J_RJMCMC"
      ]
    },
    {
      "page": "dot-J_RJMCMC_NoBorrow",
      "title": "RJMCMC (without Bayesian Borrowing)",
      "topics": [
        ".J_RJMCMC_NoBorrow"
      ]
    },
    {
      "page": "dot-lambda_0_MH_cp",
      "title": "Lambda_0 MH step, proposal from conditional conjugate posterior",
      "topics": [
        ".lambda_0_MH_cp"
      ]
    },
    {
      "page": "dot-lambda_0_MH_cp_NoBorrow",
      "title": "Lambda_0 MH step, proposal from conditional conjugate posterior",
      "topics": [
        ".lambda_0_MH_cp_NoBorrow"
      ]
    },
    {
      "page": "dot-lambda_conj_prop",
      "title": "Propose lambda from a gamma conditional conjugate posterior proposal",
      "topics": [
        ".lambda_conj_prop"
      ]
    },
    {
      "page": "dot-lambda_MH_cp",
      "title": "Lambda MH step, proposal from conditional conjugate posterior",
      "topics": [
        ".lambda_MH_cp"
      ]
    },
    {
      "page": "dot-lgamma_ratio",
      "title": "Calculate log gamma ratio for two different parameter values",
      "topics": [
        ".lgamma_ratio"
      ]
    },
    {
      "page": "dot-llikelihood_ratio_beta",
      "title": "Loglikelihood ratio calculation for beta parameters",
      "topics": [
        ".llikelihood_ratio_beta"
      ]
    },
    {
      "page": "dot-llikelihood_ratio_lambda",
      "title": "Log likelihood for lambda / lambda_0 update",
      "topics": [
        ".llikelihood_ratio_lambda"
      ]
    },
    {
      "page": "dot-log_likelihood",
      "title": "Log likelihood function",
      "topics": [
        ".log_likelihood"
      ]
    },
    {
      "page": "dot-logsumexp",
      "title": "Computes the logarithmic sum of an exponential",
      "topics": [
        ".logsumexp"
      ]
    },
    {
      "page": "dot-lprop_density_beta",
      "title": "Log density of proposal for MALA",
      "topics": [
        ".lprop_density_beta"
      ]
    },
    {
      "page": "dot-lprop.dens.beta.NR",
      "title": "log Gaussian proposal density for Newton Raphson proposal",
      "topics": [
        ".lprop.dens.beta.NR"
      ]
    },
    {
      "page": "dot-ltau_dprior",
      "title": "Calculate log density tau prior",
      "topics": [
        ".ltau_dprior"
      ]
    },
    {
      "page": "dot-mu_update",
      "title": "Calculate mu posterior update",
      "topics": [
        ".mu_update"
      ]
    },
    {
      "page": "dot-normalize_prob",
      "title": "Normalize a set of probability to one, using the the log-sum-exp trick",
      "topics": [
        ".normalize_prob"
      ]
    },
    {
      "page": "dot-nu_sigma_update",
      "title": "Calculates nu and sigma2 for the Gaussian Markov random field prior, for a given split point j",
      "topics": [
        ".nu_sigma_update"
      ]
    },
    {
      "page": "dot-plot_hist",
      "title": "Plot histogram from MCMC samples",
      "topics": [
        ".plot_hist"
      ]
    },
    {
      "page": "dot-plot_matrix",
      "title": "Plot smoothed baseline hazards",
      "topics": [
        ".plot_matrix"
      ]
    },
    {
      "page": "dot-plot_trace",
      "title": "Plot MCMC trace",
      "topics": [
        ".plot_trace"
      ]
    },
    {
      "page": "dot-predictive_hazard",
      "title": "Predictive hazard from BayesFBHborrow object",
      "topics": [
        ".predictive_hazard"
      ]
    },
    {
      "page": "dot-predictive_hazard_ratio",
      "title": "Predictive hazard ratio (HR) from BayesFBHborrow object",
      "topics": [
        ".predictive_hazard_ratio"
      ]
    },
    {
      "page": "dot-predictive_survival",
      "title": "Predictive survival from BayesFBHborrow object",
      "topics": [
        ".predictive_survival"
      ]
    },
    {
      "page": "dot-set_hyperparameters",
      "title": "Set tuning parameters",
      "topics": [
        ".set_hyperparameters"
      ]
    },
    {
      "page": "dot-set_tuning_parameters",
      "title": "Set tuning parameters",
      "topics": [
        ".set_tuning_parameters"
      ]
    },
    {
      "page": "dot-shuffle_split_point_location",
      "title": "Metropolis Hastings step: shuffle the split point locations (with Bayesian borrowing)",
      "topics": [
        ".shuffle_split_point_location"
      ]
    },
    {
      "page": "dot-shuffle_split_point_location_NoBorrow",
      "title": "Metropolis Hastings step: shuffle the split point locations (without Bayesian borrowing)",
      "topics": [
        ".shuffle_split_point_location_NoBorrow"
      ]
    },
    {
      "page": "dot-sigma2_update",
      "title": "Calculate sigma2 posterior update",
      "topics": [
        ".sigma2_update"
      ]
    },
    {
      "page": "dot-smooth_hazard",
      "title": "Smoothed hazard function",
      "topics": [
        ".smooth_hazard"
      ]
    },
    {
      "page": "dot-smooth_survival",
      "title": "Smoothed survival curve",
      "topics": [
        ".smooth_survival"
      ]
    },
    {
      "page": "dot-tau_update",
      "title": "Sample tau from posterior distribution",
      "topics": [
        ".tau_update"
      ]
    },
    {
      "page": "BayesFBHborrow",
      "title": "BayesFBHborrow: Run MCMC for a piecewise exponential model",
      "topics": [
        "BayesFBHborrow"
      ]
    },
    {
      "page": "BayesFBHborrow.NoBorrow",
      "title": "Run the MCMC sampler without Bayesian Borrowing",
      "topics": [
        "BayesFBHborrow.NoBorrow"
      ]
    },
    {
      "page": "BayesFBHborrow.WBorrow",
      "title": "Run the MCMC sampler with Bayesian Borrowing",
      "topics": [
        "BayesFBHborrow.WBorrow"
      ]
    },
    {
      "page": "coef.BayesFBHborrow",
      "title": "Extract mean posterior values",
      "topics": [
        "coef.BayesFBHborrow"
      ]
    },
    {
      "page": "GibbsMH",
      "title": "S3 generic, calls the correct GibbsMH sampler",
      "topics": [
        "GibbsMH"
      ]
    },
    {
      "page": "GibbsMH.NoBorrow",
      "title": "GibbsMH sampler, without Bayesian Borrowing",
      "topics": [
        "GibbsMH.NoBorrow"
      ]
    },
    {
      "page": "GibbsMH.WBorrow",
      "title": "GibbsMH sampler, with Bayesian Borrowing",
      "topics": [
        "GibbsMH.WBorrow"
      ]
    },
    {
      "page": "group_summary",
      "title": "Create group level data",
      "topics": [
        "group_summary"
      ]
    },
    {
      "page": "init_lambda_hyperparameters",
      "title": "Initialize lambda hyperparameters",
      "topics": [
        "init_lambda_hyperparameters"
      ]
    },
    {
      "page": "piecewise_exp_cc",
      "title": "Example data, simulated from a piecewise exponential model.",
      "topics": [
        "piecewise_exp_cc"
      ]
    },
    {
      "page": "piecewise_exp_hist",
      "title": "Example data, simulated from a piecewise exponential model.",
      "topics": [
        "piecewise_exp_hist"
      ]
    },
    {
      "page": "plot.BayesFBHborrow",
      "title": "Plot the MCMC results",
      "topics": [
        "plot.BayesFBHborrow"
      ]
    },
    {
      "page": "summary.BayesFBHborrow",
      "title": "Summarize fixed MCMC results",
      "topics": [
        "summary.BayesFBHborrow"
      ]
    },
    {
      "page": "weibull_cc",
      "title": "Example data, simulated from a Weibull distribution.",
      "topics": [
        "weibull_cc"
      ]
    },
    {
      "page": "weibull_hist",
      "title": "Example data, simulated from a Weibull distribution",
      "topics": [
        "weibull_hist"
      ]
    }
  ],
  "_rundeps": [
    "backports",
    "checkmate",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "invgamma",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mvtnorm",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "bayesfbhborrow",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-05-15T07:09:14.000Z",
      "distro": "noble",
      "commit": "65eb3ad6cfd14102383864ec25d5977ee0dacfe8",
      "fileid": "c3d109a808db3d665a49205f4823b428994ce4089ede9dded445431e9ae19715",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25905110391"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-05-15T07:08:46.000Z",
      "distro": "noble",
      "commit": "65eb3ad6cfd14102383864ec25d5977ee0dacfe8",
      "fileid": "df9dc182902af04719b27a796ca68f319c243759480c79cf0f1fef88bf901f59",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25905110391"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.2",
      "date": "2026-06-02T19:48:29.000Z",
      "commit": "65eb3ad6cfd14102383864ec25d5977ee0dacfe8",
      "fileid": "70ec51f582992ecb909517aac70dce7d5ed3bcd5194e0180b16cf8d172fcc7db",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/25905110391"
    }
  ]
}