[R] Re : Interpreting as.factor

From: justin bem <justin_bem_at_yahoo.fr>
Date: Sat 24 Jun 2006 - 06:21:07 EST


Hi justin !  

The interpretation depend of contrast. Read about anova in any good book (Try Analys of variance Henry Scheffe 1959)  

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 [[alternative HTML version deleted]]


______________________________________________
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:27:42 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:39 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.