[R] lm() function

Rolf Turner r.turner at auckland.ac.nz
Fri May 30 00:14:59 CEST 2008


On 30/05/2008, at 9:57 AM, Jorge Ivan Velez wrote:

> Dear Hanen,
>
> You don't need "1" in your  R code. Try this:
>
> # Model
> mymodel<-lm(y~x1+x2)
>
> # Coefficients
> summary(mymodel)
>
> See also ?lm.

That's not the problem.  The ``1'' is redundant but does no harm.
There is presumably something ``wrong'' with one or more of y, x1,
and x2, and Hanen should get his act together and investigate this
before posting to the list.

	cheers,

		Rolf

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list