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
General Question about standard error clustering levelHello everyone, My question is not necessarily related to Stata codes but is broadly related to sta…
Creating Dummy variable with a condition based on the previous 3 yearsDear Stata members, I have a question please , I want to create a new dummy variable =1 if a firm h…
Keeping Last ObservationHi all, Complete newbie here. I've been trying to figure out the following without success. My set …
Labeling a density curveSorry, I'm too stupid to figure this out myself. I want to make a density curve, so I'll do this: …
KHB Method: Obtaining P Value for Mediated Effects I am using the KHB method on STATA to analyze the mediated impacts of religious identity and relig…
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