Dear all,
I would like to calculate the 10-year risk of stroke for each individual in my dataset, given a set of 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, how can I 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 10-year probabilities after stcrreg
Alternative Method Experiment For Two Way Fixed Panel RegressionDear Experts on Panel Data Econometric and Stata Program, I will use two way fixed effect panel regr…
Computing effect size after weighted multiple regressionHi all, I have another question about effect size after weighted multiple regression. the estat esi…
F statistic from logit model with survey dataHi, when performing logistic regression with survey data, is the reported F statistic actually resu…
ARIMA and SPSSWe are discontinuing use of SPSS (a product I have never used) in our office and one of my colleague…
Stata unicode issue - imported Japanese characters are scrambledHello: I'm using Mac Sierra (10.12.5) and Stata 15.0. I have a lot of csv files that I need to impo…
Subscribe to:
Post Comments (Atom)
0 Response to 10-year probabilities after stcrreg
Post a Comment