stpm3
stpm3 fits flexible parametric survival models. These models use splines to model the effect of the time scale. stpm3 replaces stpm2, though stpm2 will continue to be available on SSC.
I have added some examples to explain some of the features of stpm3 and differences to stpm2.
Installing You will need to install the
stpm3,standsurvandgensplinespackages. You can install from within Stata from SSC using the code below. If you have already installed earler test versions from my website then I recommend first removing these versions usingado uninstallbefore installing the version from SSC. Stata does not always refresh the mata libraries when usingado update, so I suggest restarting Stata after updating.
ssc install stpm3
ssc install standsurv
ssc install gensplinesFitting stpm3 models.
Predictions (conditional on covariate values)
Marginal predictions
Other Details
- [Numerical integration for
stpm3models on log hazard scale]