Hi there,
I am trying to replicate an analysis which was conducted by a colleague in SPSS. I don't seem to be able to reproduce it in Stata and I am hoping you may be able to help.
The model is a logisic regression with the outcome regressed onto an interaction of 2 main predictors (each variable indicates whether the participant received an intervention; 0=no vs. 1=yes) adjusted for 3 binary covariates.
I set the code to be
SPSS produces an OR with 95% confidence intervals, while Stata only shows the OR for the following, which I am assuming are contrasts vs. the reference 0 0:
0 1
1 0
1 1
I have a number of questions:
How can I obtain an OR with 95%CI?
How can I estimate the prevalence of the the outcome for the groups 0 0 vs. 1 1 (so comparing those who did not receive intervention any intervention vs. those who received both)?
Lastly, I am not sure why the two main effects were not included - is this for what I want to do?
Thanks in advance!
I am trying to replicate an analysis which was conducted by a colleague in SPSS. I don't seem to be able to reproduce it in Stata and I am hoping you may be able to help.
The model is a logisic regression with the outcome regressed onto an interaction of 2 main predictors (each variable indicates whether the participant received an intervention; 0=no vs. 1=yes) adjusted for 3 binary covariates.
I set the code to be
Code:
logistic y i.x1#i.x2 i.cv1 i.cv2 i.cv3
0 1
1 0
1 1
I have a number of questions:
How can I obtain an OR with 95%CI?
How can I estimate the prevalence of the the outcome for the groups 0 0 vs. 1 1 (so comparing those who did not receive intervention any intervention vs. those who received both)?
Lastly, I am not sure why the two main effects were not included - is this for what I want to do?
Thanks in advance!
Comment