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