## rstpm2

swMATH ID: | 17075 |

Software Authors: | Mark Clements, Xing-Rong Liu, Paul Lambert |

Description: | R package rstpm2. Generalized Survival Models. 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. |

Homepage: | https://cran.r-project.org/web/packages/rstpm2/index.html |

Source Code: | https://github.com/cran/rstpm2 |

Dependencies: | R |

Keywords: | CRAN; R package; Generalized Survival Models; Stata; stpm2 function |

Related Software: | R; flexsurv; coxme; stpm2; mgcv; survival; flexrsurv; relsurv; Stata; survPen; frailtyEM; Muhaz; Matlab; Statmod; strcs; nlme; parfm; frailtypack; mexhaz; vSMC |

Cited in: | 1 Document |

### Cited by 4 Authors

1 | Denuit, Michel M. |

1 | Legrand, Catherine |

1 | Silversmit, Geert |

1 | Soetewey, Antoine |

### Cited in 1 Serial

1 | European Actuarial Journal |

### Cited in 2 Fields

1 | Statistics (62-XX) |

1 | Game theory, economics, finance, and other social and behavioral sciences (91-XX) |