5/23/2023 0 Comments Split 302 block![]() How should I write the code? Animal dose day RV1 RV2 RV3 I tried the following: model <- lmer(response variable + dose + (day|dose) + (1|animal), data= mydata, REML=FALSE) but I get all kinds of errors. The animals were not randomised to treatment in other words, they all got the first dose in block 1, the second dose in block 2, the third dose in block 3 and the fourth dose in block 4. Each treatment block was separated by a washout period. Then, the response variables were collected every 24 hours. At day zero (the day before dosing started) I collected the baseline data of the response variables in the block. Each dose was a treatment block in which the animals were dosed once daily for 5 days. My experimental design: 3 animals were treated in a pilot with a single drug at 4 different doses. I am familiar (to an extent) with the lme4 package. ![]() I am looking for help of how to fit a model for an experiment that I have done. ![]() I am new to this website, to r, and to mixed effect models so apologise in advance if I exhibit a degree of ignorance.
0 Comments
Leave a Reply. |