CRAN/E | rstpm2

rstpm2

Smooth Survival Models, Including Generalized Survival Models

Installation

About

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.

Citation rstpm2 citation info
github.com/mclements/rstpm2
Bug report File report

Key Metrics

Version 1.6.3
R ≥ 3.0.2
Published 2023-12-05 140 days ago
Needs compilation? yes
License GPL-2
License GPL-3
CRAN checks rstpm2 results

Downloads

Yesterday 103 0%
Last 7 days 1.270 -20%
Last 30 days 5.434 -4%
Last 90 days 15.981 -3%
Last 365 days 61.797 -13%

Maintainer

Maintainer

Mark Clements

mark.clements@ki.se

Authors

Mark Clements

aut / cre

Xing-Rong Liu

aut

Benjamin Christoffersen

aut

Paul Lambert

ctb

Lasse Hjort Jakobsen

ctb

Alessandro Gasparini

ctb

Gordon Smyth

cph

Patrick Alken

cph

Simon Wood

cph

Rhys Ulerich

cph

Material

README
NEWS
Reference manual
Package source

In Views

Survival

Vignettes

Introduction to the rstpm2 Package
\texttt{rstpm2}: a simple guide
Predictions for Markov multi-state models
Introduction to the predictnl function

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

rstpm2 archive

Depends

R ≥ 3.0.2
methods
survival
splines

Imports

graphics
Rcpp ≥ 0.10.2
stats
mgcv
bbmle ≥ 1.0.20
fastGHQuad
deSolve
utils
parallel
mvtnorm

Suggests

eha
testthat
ggplot2
lattice
readstata13
mstate
scales
survPen
flexsurv
timereg

LinkingTo

Rcpp
RcppArmadillo
BH

Reverse Depends

cuRe
metaRMST

Reverse Imports

afthd
eventPred
flexsurv
JointFPM
QuantileGH

Reverse Suggests

biostat3
mexhaz
rsimsum
simsurv