Hi all,
I'm trying to create a mixed logistic regression model to look at the effect of having a disease on an outcome occuring over time.
Time in my data is represented by two visits - visit 1 and visit 2. Disease variable is either 0 ( no disease) or 1 (disease present).
Outcome is either 0 (hasnt occured yet) or 1 (has occured).
Initially I thought creating an interaction term as below would be the best method of finding the coefficient directly relating to this.
The more I think about it, I believe that the lincom could be incorrect for what I want as it is simply looking at the effect of having disease in all those at visit 1 rather then looking at the effect of having disease when looking at changes in outcome from visit 0 to visit 1??
I'm wondering if instead I should be looking at:
-> the effect of increase in visit by 1 for those without the disease, compared to:
the effect of increase in visit by 1 for those with the disease
Could I have some advice on what is correct?
Any help is much appreciated!
I'm trying to create a mixed logistic regression model to look at the effect of having a disease on an outcome occuring over time.
Time in my data is represented by two visits - visit 1 and visit 2. Disease variable is either 0 ( no disease) or 1 (disease present).
Outcome is either 0 (hasnt occured yet) or 1 (has occured).
Initially I thought creating an interaction term as below would be the best method of finding the coefficient directly relating to this.
Code:
melogit outcome i.visit##i.disease || study_id: , or
Code:
lincom 1.disease + 1.visit#1.disease
I'm wondering if instead I should be looking at:
Code:
lincom 1.visit
Code:
lincom 1.visit+ 1.disease#1.visit
Could I have some advice on what is correct?
Any help is much appreciated!
Comment