Thanks as always to Kit Baum, a new package predsurv is now available for download from SSC. In Stata, use the ssc command to do this.
The predsurv package is described as below on my website, and enables the user to compute a k-year (or k-unit) predicted survival probability for all lifetimes after fitting a survival model using streg. I would like to thank Isabel Canette of StataCorp for some helpful discussions about how best to do this.
Best wishes
Roger
---------------------------------------------------------------------------
package predsurv from http://www.rogernewsonresources.org.uk/stata10
---------------------------------------------------------------------------
TITLE
predsurv: Compute predicted survival to a specified time after streg
DESCRIPTION/AUTHOR(S)
predsurv is intended for use in a survival time dataset set up by
stset, after streg has been used to fit a survival time model. It
computes a survival probability for a user-specified survival time,
in the units specified by the scale() option of stset. Note that
predsurv can do out-of-sample prediction, if streg has been used to
fit a model on a subset of the data.
Author: Roger Newson
Distribution-Date: 20february2020
Stata-Version: 10
INSTALLATION FILES (click here to install)
predsurv.ado
predsurv.sthlp
---------------------------------------------------------------------------
(click here to return to the previous screen)
Related Posts with New package predsurv on SSC
When Stata if command is false, calling on Mata causes errorsHi everyone, Using Stata 15.1 MP8, I've encountered a variety of errors that seem to be caused by ca…
Fixed effects (in Accelerated Failure Time Survival Model), Cross-sectionalHi, For my research I am examining private equity strategies and their subsequent exit-types. My da…
After regression, how can I do calculation using r2 and N?After regression, I want to calculate the scalar, that is r2*N How should I do that? I know my bad …
Fixed effects (in Accelerated Failure Time Survival Model)Hi, For my research I am examining private equity strategies and their subsequent exit-types. My da…
range function generating over 400 missing valuesHello, I am trying to make a Stata variable that stores 20 numbers between 0 and 1. I am using the …
Subscribe to:
Post Comments (Atom)
0 Response to New package predsurv on SSC
Post a Comment