EmmaB
2013-Nov-05 23:36 UTC
[R] Error message glmer using R: “ 'what' must be a character string or a function”
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. Many thanks Emma -- 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.
David Winsemius
2013-Nov-06 00:42 UTC
[R] Error message glmer using R: “ 'what' must be a character string or a function”
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
EmmaB
2013-Nov-06 00:47 UTC
[R] Error message glmer using R: “ 'what' must be a character string or a function”
> str(new)'data.frame': 1214 obs. of 4 variables: $ ?..VAR00001 : logi NA NA NA NA NA NA ... $ random : int 1 1 1 1 1 1 1 1 1 1 ... $ clustno : int 1 1 1 1 1 1 1 1 1 1 ... $ validatedRS6: int 0 0 0 0 0 0 0 0 0 0 ... -- 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-tp4679829p4679836.html Sent from the R help mailing list archive at Nabble.com.