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
cutt-off missing dataDear statlisters, i have a data set with 1500 observation and 60 variables. the highest percentage o…
Dyadic analysis - what are the key assumptionsHi all, We want to perform dyadic analysis for a cross-sectional dataset of about 800 families with…
Elementary Question on string/concatenateHi Stata Community, I would like to destring multiple answers in my dataset. The survey allowed res…
reshape data?Dear All, I find this question here (https://bbs.pinggu.org/thread-6924503-1-1.html). The data is C…
Remove spaces from string if consecutive one letter characters or numbersHi how would I go about removing spaces from strings such as the following: 1 2 B L GROW A I M INC b…
Subscribe to:
Post Comments (Atom)
0 Response to Fine and Gray calculate individual risks
Post a Comment