Package: rstpm2 1.6.6
rstpm2: Smooth Survival Models, Including Generalized Survival Models
R implementation of generalized survival models (GSMs), smooth accelerated failure time (AFT) models and Markov multi-state models. For the GSMs, g(S(t|x))=eta(t,x) for a link function g, survival S at time t with covariates x and a linear predictor eta(t,x). The main assumption is that the time effect(s) are smooth <doi:10.1177/0962280216664760>. For fully parametric models with natural splines, this re-implements Stata's 'stpm2' function, which are flexible parametric survival models developed by Royston and colleagues. We have extended the parametric models to include any smooth parametric smoothers for time. We have also extended the model to include any smooth penalized smoothers from the 'mgcv' package, using penalized likelihood. These models include left truncation, right censoring, interval censoring, gamma frailties and normal random effects <doi:10.1002/sim.7451>, and copulas. For the smooth AFTs, S(t|x) = S_0(t*eta(t,x)), where the baseline survival function S_0(t)=exp(-exp(eta_0(t))) is modelled for natural splines for eta_0, and the time-dependent cumulative acceleration factor eta(t,x)=\int_0^t exp(eta_1(u,x)) du for log acceleration factor eta_1(u,x). The Markov multi-state models allow for a range of models with smooth transitions to predict transition probabilities, length of stay, utilities and costs, with differences, ratios and standardisation.
Authors:
rstpm2_1.6.6.tar.gz
rstpm2_1.6.6.zip(r-4.5)rstpm2_1.6.6.zip(r-4.4)rstpm2_1.6.6.zip(r-4.3)
rstpm2_1.6.6.tgz(r-4.4-x86_64)rstpm2_1.6.6.tgz(r-4.4-arm64)rstpm2_1.6.6.tgz(r-4.3-x86_64)rstpm2_1.6.6.tgz(r-4.3-arm64)
rstpm2_1.6.6.tar.gz(r-4.5-noble)rstpm2_1.6.6.tar.gz(r-4.4-noble)
rstpm2_1.6.6.tgz(r-4.4-emscripten)rstpm2_1.6.6.tgz(r-4.3-emscripten)
rstpm2.pdf |rstpm2.html✨
rstpm2/json (API)
NEWS
# Install 'rstpm2' in R: |
install.packages('rstpm2', repos = c('https://mclements.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mclements/rstpm2/issues
- brcancer - German breast cancer data from Stata.
- colon - Colon cancer.
- legendre.quadrature.rule.200 - Legendre quadrature rule for n=200.
- popmort - Background mortality rates for the colon dataset.
Last updated 30 days agofrom:b7fd6f48ee. Checks:OK: 1 NOTE: 8. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 22 2024 |
R-4.5-win-x86_64 | NOTE | Nov 22 2024 |
R-4.5-linux-x86_64 | NOTE | Nov 22 2024 |
R-4.4-win-x86_64 | NOTE | Nov 22 2024 |
R-4.4-mac-x86_64 | NOTE | Nov 22 2024 |
R-4.4-mac-aarch64 | NOTE | Nov 22 2024 |
R-4.3-win-x86_64 | NOTE | Nov 22 2024 |
R-4.3-mac-x86_64 | NOTE | Nov 22 2024 |
R-4.3-mac-aarch64 | NOTE | Nov 22 2024 |
Exports:addModelaftaftModelAICAICcanovabhazardBICcoefcoef<-confintconfint.predictnlcox.tvceformformulagsmgsm_designhazFunhrModelincrVarlinesmarkov_msmmarkov_sdensxnsxDplotpredictpredictnlpredictnl.defaultpstpm2qAICcratio_markov_msmresidualssimulatesmoothpwcsplineFunstandardisestpm2summaryupdatevcovvoptimisevoptimizevunirootzeroModel
Dependencies:bbmlebdsmatrixBHfastGHQuadlatticeMASSMatrixmgcvmvtnormnlmenumDerivRcppRcppArmadillosurvival
Introduction to the predictnl function
Rendered frompredictnl.Rnw
usingutils::Sweave
on Nov 22 2024.Last update: 2018-05-29
Started: 2018-05-29
Introduction to the rstpm2 Package
Rendered fromIntroduction.Rnw
usingutils::Sweave
on Nov 22 2024.Last update: 2019-11-04
Started: 2013-05-31
Predictions for Markov multi-state models
Rendered frommultistate.Rnw
usingutils::Sweave
on Nov 22 2024.Last update: 2019-10-15
Started: 2019-05-08