Other packages > Find by keyword >

rstpm2  

Smooth Survival Models, Including Generalized Survival Models
View on CRAN: Click here


Download and install rstpm2 package within the R console
Install from CRAN:
install.packages("rstpm2")

Install from Github:
library("remotes")
install_github("cran/rstpm2")

Install by package version:
library("remotes")
install_version("rstpm2", "1.6.3")



Attach the package and use:
library("rstpm2")
Maintained by
Mark Clements
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2015-07-26
Latest Update: 2023-12-05
Description:
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.
How to cite:
Mark Clements (2015). rstpm2: Smooth Survival Models, Including Generalized Survival Models. R package version 1.6.3, https://cran.r-project.org/web/packages/rstpm2
Previous versions and publish date:
1.2.2 (2015-07-26 18:57), 1.3.1 (2016-02-24 16:59), 1.3.2 (2016-04-13 17:59), 1.3.4 (2016-10-09 09:19), 1.4.0 (2017-08-31 23:37), 1.4.1 (2017-09-20 20:30), 1.4.2 (2018-05-29 15:45), 1.4.4 (2018-11-01 23:30), 1.4.5 (2019-01-17 16:50), 1.5.0 (2019-10-15 17:10), 1.5.1 (2019-11-06 00:00), 1.5.2 (2021-03-03 18:10), 1.5.5 (2022-04-19 10:10), 1.5.6 (2022-05-10 14:30), 1.5.7 (2022-07-14 00:50), 1.5.8 (2022-10-17 16:50), 1.5.9 (2023-01-07 04:40), 1.6.1 (2023-02-28 17:02), 1.6.2 (2023-03-08 14:20)
Other packages that cited rstpm2 R package
View rstpm2 citation profile
Other R packages that rstpm2 depends, imports, suggests or enhances
Downloads during the last 30 days
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

Deriv  
Symbolic Differentiation
R-based solution for symbolic differentiation. It admits user-defined function as well as function s ...
Download / Learn more Package Citations See dependency  
bulletr  
Algorithms for Matching Bullet Lands
Analyze bullet lands using nonparametric methods. We provide a reading routine for x3p files (see &l ...
Download / Learn more Package Citations See dependency  
lgarch  
Simulation and Estimation of Log-GARCH Models
Simulation and estimation of univariate and multivariate log-GARCH models. The main functions of the ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
buildr  
Organize & Run Build Scripts Comfortably
Working with reproducible reports or any other similar projects often require to run the script that ...
Download / Learn more Package Citations See dependency  

22,086

R Packages

187,731

Dependencies

55,244

Author Associations

22,087

Publication Badges

© Copyright 2022 - present. All right reserved, rpkg.net. Contact Us / Suggestions / Concerns