Code:
gen outcome = had_fracture gen endpoint = min(first_fracture_date, end_follow_date) stset endpoint, failure(outcome = 1) scale(365.25) origin(start_follow_date) stcompet= , compet(dead=1)
And then to depict the (competing) cumulated incidence of fractures and death:
Code:
twoway /// (line cummort _t if status==1 , c(J)) /// (line cummort _t if dead==1 , c(J))
Leave a comment: