Re: [R] contrasts in aov

From: Christoph Buser <buser_at_stat.math.ethz.ch>
Date: Mon 25 Sep 2006 - 08:32:21 GMT

Dear John

?ordered

will help you.

Regards,

Christoph Buser



Christoph Buser <buser@stat.math.ethz.ch> Seminar fuer Statistik, LEO C13
ETH Zurich	8092 Zurich	 SWITZERLAND
phone: x-41-44-632-4673		fax: 632-1228

http://stat.ethz.ch/~buser/

John Vokey writes:
> 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
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.



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 and provide commented, minimal, self-contained, reproducible code. Received on Mon Sep 25 18:35:39 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 Mon 25 Sep 2006 - 09:30:06 GMT.

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