Package: brea 0.4.2

brea: Bayesian Recurrent Events Analysis

Functions to produce MCMC samples for posterior inference in semiparametric Bayesian discrete time competing risks recurrent events models and multistate models.

Authors:Adam J King [aut, cre]

brea_0.4.2.tar.gz
brea_0.4.2.zip(r-4.7-any)brea_0.4.2.zip(r-4.6-any)brea_0.4.2.zip(r-4.5-any)
brea_0.4.2.tgz(r-4.6-any)brea_0.4.2.tgz(r-4.5-any)
brea_0.4.2.tar.gz(r-4.7-any)brea_0.4.2.tar.gz(r-4.6-any)
brea_0.4.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
brea/json (API)

# Install 'brea' in R:
install.packages('brea', repos = c('https://adam-king.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.30 score 7 scripts 362 downloads 2 exports 0 dependencies

Last updated from:fdee3d1284. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK103
source / vignettesOK178
linux-releaseOK95
macos-releaseOK183
macos-oldrelOK162
windows-develOK73
windows-releaseOK65
windows-oldrelOK60
wasm-releaseOK81

Exports:brea_mcmcbrea_mcmc_ms

Dependencies:

Introduction to brea
Background | Discrete Time Survival Analysis | Hazard Rates and Cox Proportional Hazards Models | Expanding Data to Person-Time Format | Formatting Data for the brea Package | Bayesian Inference via MCMC Simulation | Prior and Posterior Distributions | Inference via MCMC Sampling from the Posterior Distribution | Detailed Example of a Simple Cox Model | Classical Partial Likelihood Inference using coxph() | Discrete Time Survival Data Preparation | Frequentist Logistic Regression Inference using glm() | Polynomial Time Effect | Step Function Time Effect | Bayesian Inference using brea_mcmc() | Setting Up an MCMC Run | Extracting and Examining Results | Assessing MCMC Performance and Adjusting MCMC Run Length S | Better Step Function Approximation using the GMRF Prior Type | Inferences | Comparison with Other Approaches | References

Last update: 2025-08-30
Started: 2024-07-23

Semiparametric Covariate Effects in the brea Package
Background | Modeling Nonlinear Covariate Effects in the Discrete Cox Model | The Discrete Time Cox Proportional Hazards Model | Additive Modeling of Nonlinear Covariate Effects | Modeling Nonlinear Effects Using Step Functions | Bayesian Smoothing of Step Heights Using GMRF's | Metropolis-Hastings Inference for Parameters with GMRF Priors | Example Implementation of a Smooth Baseline Hazard in a Cox Model | Data Setup | Model Fitting | Posterior Inference | Comparing Different Step Widths | MCMC Performance Assessment and Comparison | References

Last update: 2025-08-30
Started: 2025-08-30