useRs,
   A no doubt simple question, but I am baffled.  Indeed, I think I  
once knew the answer, but can't recover it.  The default contrasts  
for aov (and lm, and...) are contr.treatment and contr.poly for  
unordered and ordered factors, respectively.  But, how does one  
invoke the latter?  That is, in a data.frame, how does one indicate  
that a factor is an *ordered* factor such that contr.poly is invoked  
in the aov or lm call?
--
Please avoid sending me Word or PowerPoint attachments.
See <http://www.gnu.org/philosophy/no-word-attachments.html>

-Dr. John R. Vokey

______________________________________________
[email protected] 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