Skip to content
Prev 38395 / 398500 Next

Contrast specified with C() - R vs S-Plus problem

On Wed, 8 Oct 2003, Pascal A. Niklaus wrote:

            
And so does R.  You just did not specify it correctly in R.  The code you 
quote works in R as well, but your original example had four levels, not 
three.
Df Sum Sq Mean Sq F value   Pr(>F)
C(CO2, c(1, 0, -1))  2 16.000   8.000  7.2593 0.004014
Residuals           21 23.143   1.102

Please do not make out your user errors to be S-R differences.
Did you actually try your example in R?