Package: BayesSurvival 0.2.0

BayesSurvival: Bayesian Survival Analysis for Right Censored Data

Performs unadjusted Bayesian survival analysis for right censored time-to-event data. The main function, BayesSurv(), computes the posterior mean and a credible band for the survival function and for the cumulative hazard, as well as the posterior mean for the hazard, starting from a piecewise exponential (histogram) prior with Gamma distributed heights that are either independent, or have a Markovian dependence structure. A function, PlotBayesSurv(), is provided to easily create plots of the posterior means of the hazard, cumulative hazard and survival function, with a credible band accompanying the latter two. The priors and samplers are described in more detail in Castillo and Van der Pas (2020) "Multiscale Bayesian survival analysis" <arxiv:2005.02889>. In that paper it is also shown that the credible bands for the survival function and the cumulative hazard can be considered confidence bands (under mild conditions) and thus offer reliable uncertainty quantification.

Authors:Stephanie van der Pas [aut, cre], Ismael Castillo [aut]

BayesSurvival_0.2.0.tar.gz
BayesSurvival_0.2.0.zip(r-4.7)BayesSurvival_0.2.0.zip(r-4.6)BayesSurvival_0.2.0.zip(r-4.5)
BayesSurvival_0.2.0.tgz(r-4.6-any)BayesSurvival_0.2.0.tgz(r-4.5-any)
BayesSurvival_0.2.0.tar.gz(r-4.7-any)BayesSurvival_0.2.0.tar.gz(r-4.6-any)
BayesSurvival_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BayesSurvival/json (API)
NEWS

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

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.70 score 5 scripts 280 downloads 11 exports 20 dependencies

Last updated from:0c88791b4b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK147
source / vignettesOK152
linux-release-x86_64OK152
macos-release-arm64OK98
macos-oldrel-arm64OK98
windows-develOK111
windows-releaseOK98
windows-oldrelOK101
wasm-releaseOK106

Exports:BayesSurvCumhazEvalMCMCDepGammaFirstMCMCDepGammaIntermediatePlotBayesSurvRadiusCredibleSetReshapeDataSamplePosteriorDepGammaSamplePosteriorIndepGammaSurvEvalSurvivalFromCumhaz

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglatticelifecycleMatrixR6RColorBrewerrlangS7scalessurvivalvctrsviridisLitewithr

Introduction to package BayesSurvival

Rendered fromVignetteBayesSurvival.Rmdusingknitr::rmarkdownon May 08 2026.

Last update: 2021-03-12
Started: 2021-03-12