0
我想运行线性混合效果模型(包nlme),但我重复得到错误:类型'closure'的对象不是子集。lme - 错误:类型'closure'的对象不是子集合
> apoeht <- read.csv("apoeht.csv")
> library(nlme)
> model.a <- lme(Timmrec ~ age, data = apoeht, random = ~ age | pathid,
+ na.exclude)
Error: object of type 'closure' is not subsettable
谢谢。
你正在传递'na.exclude'作为第四个参数,它是'correlation'。相反,在那里使用命名的参数:'na.action = na.exclude' – Justin
这个问题已经在这个论坛上讨论过[这里(“http://stackoverflow.com/questions/11308367/object-of-type-closure-是 - 不subsettable“)] – heybhai