Re: [R] Linear Regression ?

From: Roland Rau <>
Date: Mon, 16 Jun 2008 13:29:29 -0400


did you have a look at the manual "An Introduction to R"? ( Chapter "Statistical Models in R" should answer (most of) your questions concerning linear regression.

kayj wrote:
> Also each x is a categorical variable with 4 categories so I have to
> introduce three variables for each x

If I understood correctly what you mean (-> coding of dummy variables), this is not necessary in R. If you variable is a "factor", R does it for you automatically. If you are unhappy with the choice of reference category, please check:

I hope this helps,
Roland mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 16 Jun 2008 - 17:54:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 Jun 2008 - 18:30:41 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive