I am trying to build a model for my result. Exact same model works for bigger data set where my current data set (Alder3) is a part of. But now I just copied the results into a new excel sheet and suddenly I received the following error. I tried even with one random effect and still I got the same error. Any help is appreciated.
M1<- lmer(Blood_sugar~ Age +(1| Animal)+(1| Parents), data = Alder3,subset(Alder3,Fresh_Frozen==0, Inc==0))
Error in if (REML) p else 0L : argument is of length zero
this part of the code subset(Alder3,Fresh_Frozen==0, Inc==0)
is used for the REML argument of lmer
, which only takes a single logical value of ie( TRUE
or FALSE
). Try M1<- lmer(Blood_sugar~ Age +(1| Animal)+(1| Parents), data = Alder3,subset = Fresh_Frozen==0 & Inc==0)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.