[R] Error in mkRespMod(fr, family = family) : response must be numeric

David Winsemius dwinsemius at comcast.net
Mon Nov 16 19:03:35 CET 2015


> On Nov 15, 2015, at 1:58 PM, Tania Pollak <pollaktn at gmail.com> wrote:
> 
> Hi --
> 
> I am new to R, and not much more advanced in stats, but am trying to learn
> my way through the program to finish my master's thesis.  I am trying to
> run tests using glmer, and am getting the above error message.
> 
> My code is:
> 
>> test1=glmer(V12~V10+(1|V4),family=poisson)
> Error in mkRespMod(fr, family = family) : response must be numeric
> 
> (The V's are the column numbers for the variable names -- the program
> doesn't seem to recognize the actual variable names, although they are in
> the table, but does recognize the column numbers.)

I do not understand what you are calling “the table”. Did you use attach() on a dataframe that has those variable names as its column names? Using `attach` is very unwise, often leading to getting puzzling error messages. If my guess is correct, you should detach() the dataframe and post the output of summary( <whatever name it might have>). It appears you do not understand what is in the `V12` column.


> 
> Any help is much appreciated.  I tried searching online for some guidance,
> but came up empty.
> 
> Thank you --
> 
> Tania
> 
> 	[[alternative HTML version deleted]]

This is a plain text mailing list.

> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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