Hi everyone,
I'm doing survival analysis in Stata 17. I'd like to estimate the rate of mortality and confidence intervals at four time points during my study - 30 days, 1 year, 2 years, and 3 years. I have -stset- the data and can generate KM curves that are both unadjusted and adjusted with inverse probability weights. I can also generate a risk table along with the figure that records. -stpm2- is working fine for estimating risk ratios at the various time intervals I need. However, I'm not sure the best way to extract (if that's the word) the unadjusted and adjusted mortality at my time points of interest. I've been able to use the -ltable- command to get unadjusted mortality, but I'm not sure if this is correct. Regardless, -ltable- doesn't appear to work with probability weighted data. I can generate a risk table with -sts graph-. However, that still seems to require me to do a bit of manual work that seems a bit prone to error. I've also been able to output a .dta set that just has the KM data in it, but I'm not sure what to do with this next now that I have it.
I would welcome advice on how best to take the KM curves I have plotted and estimate mortality and 95% CIs at various time points. Happy to post any code that is relevant - just not sure what might be needed yet!
Thanks!
Related Posts with How to estimate mortality and CIs from survival data (KM curves)?
Indicate loss of observations by variableDear Statalist Community, I am looking for a command that tells me how many observations are lost w…
Truncated Weibull Distribution ?Dear Experts, I kindly ask if one of you have any idea on how I could fit a zero-truncated Weibull …
How to create a graph like this in STATA?I am conducting an event study where I want to graph out cumulative abnormal returns surrounding the…
EVENTDD error message with cross section dataI'm working with BRFSS data and its a cross section data. Need to create event study analysis and I …
Tools for creating HTML documents with StataDoes anyone have preferred options for creating HTML documents that incorporate Stata code? I've hea…
Subscribe to:
Post Comments (Atom)
0 Response to How to estimate mortality and CIs from survival data (KM curves)?
Post a Comment