Re: [R] Contrasts for a data

2013-02-08 Thread Bert Gunter
Rail is an ordered factor. ?ordered for details. Default contrasts for an ordered factor are orthogonal polynomials. See: https://stat.ethz.ch/pipermail/r-help/2007-January/123268.html and http://www.ats.ucla.edu/stat/r/library/contrast_coding.htm#ORTHOGONAL -- Bert On Fri, Feb 8, 2013 at 1:

[R] Contrasts for a data

2013-02-08 Thread jing tang
Hi, I am using a data called Rail in the nlme package. The data contains two variables: Rail and Travel. >Rail Grouped Data: travel ~ 1 | Rail Rail travel 1 1 55 2 1 53 3 1 54 4 2 26 5 2 37 6 2 32 7 3 78 8 3 91 9 3 85 10