[R] glm with four variables

Martyn Plummer plummer at iarc.fr
Fri Feb 8 14:13:42 CET 2002


On 08-Feb-2002 iago mosqueira wrote:
> Hi,
> 
> Sorry if this is a very basic question, but when I run this
> 
> glm(formula = loge ~ lat + ne + dep, family = gaussian)
> 
> summary shows the same formula but results only for the first two variables.
> What am I doing wrong?

Probably dep is aliased: i.e. some linear combination of lat, ne and the
intercept equals dep for all values. A model with all four terms is, in
this case, unidentifiable so dep is dropped.  This appears to take place
silently.  It might be more useful to issue a warning.

Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list