Hello
I was looking for some assistance in generating a prediction risk score for a binary outcome (cr_code), then using the risk score to calculate the quartile odds ratio for patients in the highest risk quartile compared to the lowest risk quartile for having the event.
Variables I would like to include in the risk score are ones that were significant in a logistic regression backwards selection analysis: age, race, gender, income, education cognitive function. This is what I have so far you:
logit cr_code i.income i.education i.q_cognitive2
predict yhat, xb
Your assistance will be greatly appreciated.
Related Posts with How do I generate a risk score and then use it to calculate quartile odds ratio
Recoding variables with a loop - 2020 challengeHi, My panel data set has three different variables and I must do a similar treatment on them, they…
Count variables without missings in rowHi, I have a panel data set and would like to count the number of "id"s that do not have any missin…
Out of sample prediction for a logit model with dummy for time effectI have a panel data which I would like to fit a logit/xtlogit for it. I added i.year as time dummies…
Checking for multicollinearity in ppmlhfe gravity modelsHello, I am estimating a gravity model with ppmlhfe. I use importer and exporter year fixed effects …
How to change year in wrong date due to data errorHello Is there anybody that can help me with a replace syntx for changing wrong years in a date var…
Subscribe to:
Post Comments (Atom)
0 Response to How do I generate a risk score and then use it to calculate quartile odds ratio
Post a Comment