Skip to content
Prev 18125 / 20628 Next

R-sig-mixed-models Digest, Vol 155, Issue 3

Chia-yu,

I think you need to read through some of the information for lmer and mixed-modeling.

In your second model you have sex as a random slope, varying across patient (which isn?t right, maybe it would be if every single patient were transgender). Sex should be a fixed factor, with age, and drug doses. It looks like ?case? is merely a place holder, and since you have patient as a random factor, you?ve taken care of the repeated measures. That said, case could also be used as a timepoint indicator, in which case it?s fine as a fixed factor (or you could make that a random slope? (Case | Patient), but I don?t know the importance of time in your study.  You could do stepwise, where you sequentially add the fixed factors, though in doing so, you should also probably look into possible interactions of sex on drug and age on drug. I?m not sure the specifics of Drug A and B; it seems in one case, they?re administered at the same time. So maybe it?s best to pick out the most important interactions, since interactions can become unwieldy pretty quickly.

value ~ Age * Sex * DrugA * DrugB + (Case | Patient) would be an interaction on all terms?which might make sense if all IVs are significant. That said, good look reading that.

Test with the likelihood ratio test using ANOVA(m1, m2), though if you have absences for patients then your LRT will have different observations, and it won?t work. 

Best, 

James
Message-ID: <8A07D164-DBA6-482E-B5A5-37947F466322@UCSD.edu>
In-Reply-To: <mailman.17935.7.1572778801.27763.r-sig-mixed-models@r-project.org>