Hi all,
I want t use a contrasts in adjusted regression (lm()) for a factor with four 
levels, compared the coefficients first with second, first with third, ..., 
third with fourth.
Someone can help with a contrast matrix to be used. I tried and not yet I 
obtained.

Say:

y <- rnorm(50)
x <-  cut(rnorm(50, mean=y, sd=0.25),c(-3,-1.5,0,1.5,3))
reg <-  lm(y ~ x, contrasts = list(x="contr.sum"))



Thank you,

Ricardo



      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to