[R] how to deal with singularities in lm()

Thomas Lumley tlumley at u.washington.edu
Tue Apr 9 17:26:25 CEST 2002


On Tue, 9 Apr 2002, Lukas Kubin wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I got the report
>
> Coefficients: (1 not defined because of singularities)
>
> while trying to get my model's coefficients from lm()
> What shall I do to avoid it and get the one missing coefficient?

It means that one of your coefficients can be computed as a linear
combination of the others.  Do that.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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