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
Drop missing observations at the end of each groupDear Statalist members, I would like to drop missing observations based on their position in the da…
Interpreting triple interaction term with continuous variableDear stata community, I am struggling with the interpretation of Treated x Post x Log(1+Z) with Z b…
Dynamic Panel Model for Large T and Small N.Hello Everyone, I am working on a problem in which I am assessing the risk of credit default in rel…
ideas for: extracting all unique items, across all observations, from a string variable (itself being a list) - into a separate file?Dear statalist I am trying to figure out if there is a way to generate a datafile with all unique i…
Substantive differences between "memory" and "size"What is the difference between "Size" and "Memory" in the Properties/Data tab of the main IDE window…
Subscribe to:
Post Comments (Atom)
0 Response to Conditional Risk Using STPM2
Post a Comment