R implementation of generalized survival models, where 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. For fully parametric models, 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.

Documentation

Manual: rstpm2.pdf
Vignette: Introduction to the rstpm2 Package

Maintainer: Mark Clements <mark.clements at ki.se>

Author(s): Mark Clements*, Xing-Rong Liu*, Paul Lambert*

Install package and any missing dependencies by running this line in your R console:

install.packages("rstpm2")

Depends R (>= 2.10), methods, survival, splines
Imports graphics, Rcpp(>=0.10.2), numDeriv, stats, mgcv, bbmle(>=1.0.3), fastGHQuad
Suggests RUnit
Enhances
Linking to Rcpp, RcppArmadillo
Reverse
depends
Reverse
imports
Reverse
suggests
Reverse
enhances
Reverse
linking to

Package rstpm2
Materials
URL http://github.com/mclements/rstpm2
Task Views Survival
Version 1.3.4
Published 2016-10-09
License GPL-2 | GPL-3
BugReports http://github.com/mclements/rstpm2/issues
SystemRequirements
NeedsCompilation yes
Citation
CRAN checks rstpm2 check results
Package source rstpm2_1.3.4.tar.gz