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
Exam question I am stuck onArray Array Array https://ibb.co/NY4JdJc Hello Guys, I am posting this thread as I have been tryin…
Expand year month in data A to merge with monthly data B -date function?Dear all, My goal is to merge DataA with DataB based on ticker and matching year and month in order …
Calculating portfolio returns before formationHi all, I am trying to create hedge portfolios for different asset pricing models like Daniel, Mota,…
Reshape data and order contents in columnsDear community, I would like to transfer a data record from the long to the wide format and combine…
Saving datetime in localHi all! I wanted to save a local at the beginning of a code that would save the exact date and time…
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