R implementation of generalized survival models (GSMs) and smooth accelerated failure time (AFT) 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. 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. 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).

Version: | 1.4.5 |

Depends: | R (≥ 3.0.2), methods, survival, splines |

Imports: | graphics, Rcpp (≥ 0.10.2), stats, mgcv, bbmle (≥ 1.0.20), fastGHQuad |

LinkingTo: | Rcpp, RcppArmadillo |

Suggests: | eha, testthat |

Published: | 2019-01-17 |

Author: | Mark Clements [aut, cre], Xing-Rong Liu [aut], Paul Lambert [ctb], Lasse Hjort Jakobsen [ctb], Alessandro Gasparini [ctb], Gordon Smyth [cph], Patrick Alken [cph], Simon Wood [cph], Rhys Ulerich [cph] |

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

BugReports: | http://github.com/mclements/rstpm2/issues |

License: | GPL-2 | GPL-3 |

URL: | http://github.com/mclements/rstpm2 |

NeedsCompilation: | yes |

Materials: | README NEWS |

In views: | Survival |

CRAN checks: | rstpm2 results |

Reference manual: | rstpm2.pdf |

Vignettes: |
Introduction to the rstpm2 Package Introduction to the predictnl function |

Package source: | rstpm2_1.4.5.tar.gz |

Windows binaries: | r-devel: rstpm2_1.4.5.zip, r-release: rstpm2_1.4.5.zip, r-oldrel: rstpm2_1.4.5.zip |

OS X binaries: | r-release: rstpm2_1.4.4.tgz, r-oldrel: rstpm2_1.4.4.tgz |

Old sources: | rstpm2 archive |

Reverse depends: | metaRMST |

Reverse suggests: | biostat3, rsimsum, simsurv |

Please use the canonical form
`https://CRAN.R-project.org/package=rstpm2`
to link to this page.