Timeline for Mixed effects model specification lmer
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 23, 2021 at 15:58 | history | edited | kjetil b halvorsen♦ | CC BY-SA 4.0 |
added 13 characters in body; edited title
|
Jun 23, 2021 at 14:36 | comment | added | Robert Long |
"There are multiple wells for each treatment, so "well is nested in treatment", correct?" If each level of well belongs to one and only one level of treatment then yes, although it's largely irrelevant since with only 2 treatments, and with treatment as your main exposure, it would not make sense to fit nested random effects.
|
|
Jun 23, 2021 at 14:25 | comment | added | sandytoast |
Hi @RobertLong thanks for the input, you have helped already. Sorry if this is confusing. There are multiple wells for each treatment, so "well is nested in treatment", correct? I have edited the question to remove the well:treatment terms, (they were only necessary when I had replicated well labels in the two treatment groups for my simulated data).
|
|
Jun 23, 2021 at 14:24 | history | edited | sandytoast | CC BY-SA 4.0 |
Edited to remove (well:treatment) random effects in the code. These were copied inadvertently.
|
Jun 23, 2021 at 12:42 | comment | added | Robert Long |
(1 | well) + (1 | well:treatment) suggests that treatment is nested in well which doesn't seem to be the case here. Also, as a gneral rule you don't want to include a fixed effect as part of a grouping term for random effects, unless you have a very good reason. You say "each group (well), which is either a treatment or control group" which tells me that well indicates the treatment group, but in that case what is the treatment variable for ? Please can you explain your study design and data clearly ?
|
|
Jun 23, 2021 at 8:50 | review | First posts | |||
Jun 23, 2021 at 10:07 | |||||
Jun 23, 2021 at 8:40 | history | asked | sandytoast | CC BY-SA 4.0 |