Message-ID: <4992E6FE.50906@statistik.tu-dortmund.de>
Date: 2009-02-11T14:55:58Z
From: Uwe Ligges
Subject: Error in storage when attempting to run GLM
In-Reply-To: <b97bda600902110645l76df8105i76c47baf28690331@mail.gmail.com>
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.