[R] Error message glmer using R: “ 'what' must be a character string or a function”
David Winsemius
dwinsemius at comcast.net
Wed Nov 6 01:42:31 CET 2013
On Nov 5, 2013, at 3:36 PM, EmmaB wrote:
> I am running a multi-level model. I use the following commands with
> validatedRS6 as the outcome, random as the predictor and clustno as the
> random effects variable.
>
> new<-as.data.frame(read.delim("BABEX.dat", header=TRUE))
> install.packages("lme4")
> library(lme4)
> model1<- glmer(validatedRS6 ~ random + (1|clustno), data=new,
> family=binomial("logit"), nAGQ)
>
> However, I get the following error
>
> Error in do.call(new, c(list(Class = "glmResp", family = family),
> ll[setdiff(names(ll), : 'what' must be a character string or a function
>
> I have absolutely no idea what has gone wrong and have searched the
> internet. I am sorry but I cannot provide the data as it is from an
> intervention which has yet to be published.
You at least need to post the output of str(new).
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-message-glmer-using-R-what-must-be-a-character-string-or-a-function-tp4679829.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list