I am trying to run a linear mixed-effects model (package nlme) but I am repeatdly getting the Error: object of type 'closure' is not subsettable.
> 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
Thanks.