Re: [R] Interpreting as.factor

From: Dimitrios Rizopoulos <Dimitris.Rizopoulos_at_med.kuleuven.be>
Date: Sat 24 Jun 2006 - 06:24:44 EST

probably you want to look at the help page of ?contr.treatment

I hope it helps.

Best,
Dimitris



Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


Quoting Justin Rapp <justin.rapp@gmail.com>:

> When I run a linear regression and include a variable in the
> regression with as.factor i.e.
>
> lm(y ~x +as.factor(x1)
>
> and i read the output as
> as.factor(x1)1....
> as.factor(x1)2...
> etc.
>
> how do i interpret the estimate for each level? Is this simply to
> be
> regarded as a shift in the equation predicted by the intercept and
> independent variable x?
>
> jdr
>
>
> --
> Justin Rapp
> 409 S. 22nd St.
> Apt. 1
> Philadelphia, PA 19146
> Cell:(267)252.0297
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jun 24 06:40:13 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 24 Jun 2006 - 08:14:40 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.