Hi listers,
I am looking to see whether emotional well-being scores (continuous) are predictors of hospitalisation (DV; yes/no). I am using a logistic regression adjusting for IMD and education (both are categorical with 10 and 5 levels, respectively).
logistic hospital bl_well i.IMD i.edu
I would then like to obtain the OR for those who reported no emotional well-being (scored 0) and those who scored 100 (max score on the questionnaire). I thought I could use margins . I thought something like but I am not sure:
margins , at(bl_well(0 100)) atmeans
Is at means OK to use with categorical covariates?
The OR for well-being on hospitalisation is 0.80 (0.68 - 0.94) but when I look at the margins results they don't seem to be comparable.
_at 1: 0.019 (0.18- 0.19)
_at 2: 2.24e-13 (-3.55e-12 - 4.00e-12)
Where am I going wrong?
Related Posts with Logistic and predict OR for a specific value of the IV
Bootstrapping a user-written program that has regressions with different samplesHello, My question is, if you write a program with regressions that are ran on different samples, d…
How to draw graph with both axis labeled with different scaleMy code: twoway (scatter state year, sort by(province)) (scatter wagepre year, sort yaxis(2) by(pro…
Margins with subpop option vs Regression with if optionA. Code: logistic y x covariates [pweight=perwtf], vce(cl f00011) margins, subpop(b) dydx(x covari…
zipfile sub-option 'saving(... , replace)' not working with quoted target file name?Dear Statalist community, I just encountered a behavior with the zipfile command in Stata (I tested…
2019 GERMAN USERS GROUP MEETING, Announcement and Program_________________________________ 2019 GERMAN USERS GROUP MEETING Announcement and Program _______…
Subscribe to:
Post Comments (Atom)
0 Response to Logistic and predict OR for a specific value of the IV
Post a Comment