Dear All,
I would like to predict a conditonal risk for a recurrence at 6 months after having had no recurrence at 3 months using stpm2 and the predict command.
stpm2 x y, scale(hazard) df(z) eform
gen time3m = 3
predict hazard3months = hazard timevar(time3m)
gen time6m = 6
predict hazard6months = hazard timevar(time6m)
The problem occuring when following the steps as provided by Paul Dickman (https://www.statalist.org/forums/for...ival-modelling) is that all values after
gen = hazard6months / hazard3months
are of the the same value. So I merely receive a horizontal line when plotting the graph against age.
I would be very grateful for any advice how to overcome this issue.
Thank you in advance!
Best regards,
Maria Smolle
Related Posts with Conditional Risk Using STPM2
Splitting dataHi, I have a data set on mortgage lending for single family homes and I have a total of 10,000 obser…
Help with inverse cumulative distribution function commands invcdfPlease help correct this: invcdf PD [if] [in], Reference(str) Generate(DD) cdf(PD). error message is…
Double-cluster pooled OLSGood day to all. Is there any researcher know how to interpret the double-clustering pooled OLS? My …
COVID-19 symptoms graphic I was asked off-forum by someone in the medical field if I knew of how to create the graphic below.…
Fixed effects model: how do I take account of non-uniform time intervals?Good morning all, Hope you're well. Apologies if this is a very basic enquiry but I am still findin…
Subscribe to:
Post Comments (Atom)
0 Response to Conditional Risk Using STPM2
Post a Comment