Package: stanSPsurv 0.1.0


Sergio Béjar
stanSPsurv: Bayesian Split-Population Survival Models with Stan
Fits Bayesian split-population (cure) survival models with Weibull or log-logistic event-time distributions using Stan via 'cmdstanr'. Provides pooled, exchangeable group-frailty, and scaled proper conditional autoregressive (CAR) spatial specifications through a common formula interface. Includes methods for coefficient extraction, prediction, frailty visualization, survival curves, and choropleth mapping of spatial effects.
Authors:
stanSPsurv_0.1.0.tar.gz
stanSPsurv_0.1.0.zip(r-4.7-any)stanSPsurv_0.1.0.zip(r-4.6-any)stanSPsurv_0.1.0.zip(r-4.5-any)
stanSPsurv_0.1.0.tgz(r-4.6-any)stanSPsurv_0.1.0.tgz(r-4.5-any)
stanSPsurv_0.1.0.tar.gz(r-4.7-any)stanSPsurv_0.1.0.tar.gz(r-4.6-any)
stanSPsurv_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
stanSPsurv/json (API)
| # Install 'stanSPsurv' in R: |
| install.packages('stanSPsurv', repos = c('https://sergio-bejar.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sergio-bejar/stanspsurv/issues
- conflict_spells - Simulated post-conflict survival data
Last updated from:e99ef5245f. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 255 | ||
| source / vignettes | OK | 211 | ||
| linux-release | OK | 208 | ||
| macos-release | OK | 275 | ||
| macos-oldrel | OK | 280 | ||
| windows-devel | OK | 206 | ||
| windows-release | OK | 317 | ||
| windows-oldrel | OK | 301 | ||
| wasm-release | OK | 179 |
Exports:frailtyplot_choroplethplot_frailtyplot_survivalplot_susceptibilitystan_exchange_spsurvstan_pooled_spsurvstan_spatial_spsurv
Dependencies:abindbackportscheckmateclicmdstanrdata.tabledistributionalgenericsgluejsonlitelifecyclemagrittrmatrixStatsnumDerivpillarpkgconfigposteriorprocessxpsR6rlangtensorAtibbleutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Extract coefficients from a stanSPsurv fit | coef.stanSPsurv |
| Simulated post-conflict survival data | conflict_spells |
| Extract group or spatial frailties | frailty |
| Choropleth map of spatial frailties | plot_choropleth |
| Plot group or spatial frailties | plot_frailty |
| Plot survival curves from a stanSPsurv fit | plot_survival |
| Plot susceptibility across a covariate range | plot_susceptibility |
| Plot a stanSPsurv fit | plot.stanSPsurv |
| Predict from a stanSPsurv fit | predict.stanSPsurv |
| Print a stanSPsurv fit | print.stanSPsurv |
| Fit an exchangeable-frailty split-population survival model | stan_exchange_spsurv |
| Fit a pooled split-population survival model | stan_pooled_spsurv |
| Fit a spatial CAR split-population survival model | stan_spatial_spsurv |
| Summarise a stanSPsurv fit | summary.stanSPsurv |
