简体   繁体   English

if(REML)p else 0L时出错:参数长度为零

[英]Error in if (REML) p else 0L : argument is of length zero

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. 完全相同的模型适用于更大的数据集,而我的当前数据集(Alder3)是其中的一部分。 But now I just copied the results into a new excel sheet and suddenly I received the following error. 但是现在我只是将结果复制到新的Excel工作表中,然后突然收到以下错误。 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 if(REML)p else 0L时出错:参数长度为零

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 ). 这部分代码subset(Alder3,Fresh_Frozen==0, Inc==0)用于lmer的REML参数,该参数仅采用ie( TRUEFALSE )的单个逻辑值。 Try M1<- lmer(Blood_sugar~ Age +(1| Animal)+(1| Parents), data = Alder3,subset = Fresh_Frozen==0 & Inc==0) 尝试M1<- lmer(Blood_sugar~ Age +(1| Animal)+(1| Parents), data = Alder3,subset = Fresh_Frozen==0 & Inc==0)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何克服执行lmer函数时遇到的错误:if(REML)p else 0L中的错误:参数不能解释为逻辑? - How do I overcome this error in execution of lmer function: Error in if (REML) p else 0L : argument is not interpretable as logical? 编程错误“参数长度为零”%in% - Programming error “argument is of length zero” %in% R:如果参数长度为零则出错 - R: Error in if argument is of length zero 如果条件{:参数的长度为零,则错误 - Error in if condition {: argument is of length zero 如果循环 - 参数长度为零 - 错误 - If loop - Argument is of length zero - error if()参数中的错误在R中的长度为零 - error in if() argument is of length zero in R R for循环给出:if(is.na(x))return(0)else return(sign(x))中的错误:参数长度为零 - R for loop gives: Error in if (is.na(x)) return(0) else return(sign(x)) : argument is of length zero 我在错误中遇到错误if(file.access(phantompath,1)&lt;0){:当我使用Phantomjs时,参数长度为零(port = 4567l) - I got error like Error in if (file.access(phantompath, 1) < 0) { : argument is of length zero when I use Phantomjs(port = 4567l) dcast错误:`匹配错误(x,表,nomatch = 0L)` - dcast error: `Error in match(x, table, nomatch = 0L)` 无法解决参数长度为零错误错误 - Unable to resolve an Argument is of length zero error error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM