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
Modelling wind direction and fire spreadI'm interested in finding whether wind direction is a good predictor of the direction of fire spread…
Question on Nick Cox's aaplotSorry for this post, but I have spent over an hour with the data and with the manual but I have a pr…
Double Machine Learning (DML) in STATA (xporegress command)Dear all, I am trying to use the command that STATA has for DML (Cross-fit partialing-out lasso lin…
Assigning Continuous number to year and monthsHi all, I have date like this: date jan2015 jan2015 feb2015 march2015 march 2015 march2015 I want…
Create a new shared_border variableHi everyone, I am replicating a study. In the original study, the authors compare firms located in a…
Subscribe to:
Post Comments (Atom)
0 Response to Logistic and predict OR for a specific value of the IV
Post a Comment