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
Sorting Variables based on their valuesHello everyone, I am currently working on a panel data set where I have to create dummy variables b…
85th/15th quantile ratioDear all, I would like to calculate the 85th/15th quantile ratio of earnings by years. However, in…
Log likelihood (not concave) message - melogit /meqrlogitHi, I am running in Stata 15 the logistic model with wave fixed effect. As I was previously recomme…
Inpreting multilevelHello statalist, I have a problem interpreting my meoprobit outcomes, can anyone help me to do it. T…
Panel Data - Keeping Observations when using a Difference in Difference ApproachI have UK panel data from the British Household Panel Survey and Understanding data, covering 2000-2…
Subscribe to:
Post Comments (Atom)
0 Response to Fine and Gray calculate individual risks
Post a Comment