[R] Error in storage when attempting to run GLM

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Feb 11 15:55:58 CET 2009



R User R User wrote:
> Hello,
> I'd be very grateful for help with the following.
> 
> I attempt to run a basic GLM as follows:
> basic_model=glm(factor(A$b) ~ factor(A$c) )
 >
> variables b and c are text values and their class is factor. they have no
> missing values.
> 
> I get the error:
> Error: NA/NaN/Inf in foreign function call (arg4)
> In addition: warning messages:
> 1: Ops.factor(y,mu) : - not meaningful for factors
> 2: Ops.factor(eta, offset) : - not meaningful for factors
> etc
> 
> 
> What does this mean?

That R cannot handle a Gaussian model with a factor response. You may 
want to specify a sensible family, see ?family

Uwe Ligges


> R
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.




More information about the R-help mailing list