Dear all,
I would like to calculate the 10-year risk of stroke for each individual in my dataset, given a set of baseline covariates.
I am having troubles estimating 10-year individual risks based on a Fine and Gray model.
For a Cox model, I calculate 10-year risk using the following commands:
stset studytime, failure(stroke=1)
stcox age BP sm
predict double xb, xb
predict double basesurv, basesurv
sum basesurv if _t<10
scalar base10y=r(min)
gen risk10y=1 - base10y^exp(xb)
replace risk10y=risk10y*100
Now the question is, is it possible to calculate the 10-year risks of each individual in my dataset after running a Fine and Gray model?
stcrreg age BP sm, compete(stroke_compete=2)
I would very much appreciate your thoughts.
Best,
John
Related Posts with Fine and Gray calculate individual risks
Table CreationHey Statalists, I have data with variable named district, hospital name and total number of cases ha…
fixed effect model in xtivreg2 and singletonsI am running a fixed-effect model using xtivreg2 in stata, where my panel variable is firms and my t…
GPH files compatibility: Stata 15 and 16Hi everyone, I am trying to open .gph files created in Stata 16 using Stata 15. However, I get this…
how to use test postestimation after contrast with ar. following mixedHello, I am using Stata/SE 15.1. I have difficulties in running a post-estimation test using "test…
Latent Class analyses and repeated measuresinput int ID byte(TIME_POINT A B C) 1 0 5 10 10 1 1 25 25 25 1 2 50 50 25 2 0 50 25 25 2 1 25 75 75 …
Subscribe to:
Post Comments (Atom)
0 Response to Fine and Gray calculate individual risks
Post a Comment