[R] change in behavior of contrasts for ordered factors

RICHARD M. HEIBERGER rmh at temple.edu
Mon Nov 23 04:23:51 CET 2009


The row names are not constructed in 2.10.0pat.  Is this change intentional?
I am using Windows.

R version 2.10.0 Patched (2009-11-09 r50375)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0


> contrasts(ordered(LETTERS[1:4]))
contrasts(ordered(LETTERS[1:4]))
             .L   .Q         .C
[1,] -0.6708204  0.5 -0.2236068
[2,] -0.2236068 -0.5  0.6708204
[3,]  0.2236068 -0.5 -0.6708204
[4,]  0.6708204  0.5  0.2236068
> q()
q()



R version 2.9.2 (2009-08-24)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0


> contrasts(ordered(LETTERS[1:4]))
contrasts(ordered(LETTERS[1:4]))
          .L   .Q         .C
A -0.6708204  0.5 -0.2236068
B -0.2236068 -0.5  0.6708204
C  0.2236068 -0.5 -0.6708204
D  0.6708204  0.5  0.2236068
>




More information about the R-help mailing list