Dear STATA expert,
I am constructing a health economic model utilising the patient-level data. I fit the time-to-event data with different distributions (i.e. exponential, Weibull, log-normal, loglogistic, etc,) and the log-normal distribution turned out to be the best fit. So I need to estimate the survival rate from time 0 to say, time 50 (month) based on this log-normal survival function. I used the 'stcurve, survival' post the 'streg, dist (logn)' command and I can see the curve (whereas I need the numbers underpinning this curve and beyond time 10). But my question is how can I obtain the values? From the survival function for log-normal, I do not know how to reconstruct the survival function with the parameters after streg command (_cons and sigma). Can you please help me with this?
Any advice will be appreciated.
Thanks,
Lan
Array Array
Related Posts with How to estimate the survival function at different timepoints for a log-normal distribution after streg?
Data being destroyed while savingI'm having a very weird problem with data being destroyed while writing/reading into Stata-MP on a s…
How to combine 2 rows of data into 1 row_Dear stata user, I'm trying to combine 2 or more rows of information into 1 row, because they are a…
margins with multiple imputed dataHello, Is there a way to use the margins command with multiple-imputed data? I'm working with the f…
Help With Linear Interpolation Dear Stata Members Code: * Example generated by -dataex-. For more info, type help dataex clear i…
Replication code for Stata 14 and Stata16 producing different resultsI ran into a problem where a data replicator could not replicate an item response variable using the…
Subscribe to:
Post Comments (Atom)
0 Response to How to estimate the survival function at different timepoints for a log-normal distribution after streg?
Post a Comment