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
a basic question about -if- programming commandI know what -if- -else- does, but what if there is a -if- but not the -else-? For example: if exp {…
Generate dummy variablesDear Statalisters, Below is part of my data, which includes fundid, manager name, gender, begin day…
connect paired dot in scatter plotHi there, I'm working on a descriptive scatter plot where I need to show values of two variables, X…
Help with macro lists (for a mixed logit model)Summary: I am looking for help with a macro to cycle through a list of variables in groups of two or…
Practice post - Help with macro lists (for a mixed logit model)Summary: I am looking for help with a macro to cycle through a list of variables in groups of two or…
Subscribe to:
Post Comments (Atom)
0 Response to Conditional Risk Using STPM2
Post a Comment