adjusting for confounders in LMER in R
0
0
Entering edit mode
14 days ago

I am not very familiar with LMER and wonder if someone can confirm what I believe having read a while back. I am analysing the change in the composition of bacterial species between two time points. In my data set there are 6 confounding variables, I wish to adjust for. I believe they can be added as fixed variables into the base formula in lmer. Do I remember this correctly?

base: lmer(Y~X + (Z1 | g1)  # where Z is my random effect and g the grouping factor
adjusted: lmer(Y~X + a + b + c... + (Z1 | g1)  # were a,b,c.. are the confounders
confounders LMER R • 130 views
ADD COMMENT

Login before adding your answer.

Traffic: 1597 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6