CONTR | R Documentation |
Do F test with a given set of contrasts.
CONTR(L, Formula, Data, mu=0)
L |
contrast matrix. Each row is a contrast. |
Formula |
a conventional formula for a linear model |
Data |
a |
mu |
a vector of mu for the hypothesis L. The length should be equal to the row count of L. |
It performs F test with a given set of contrasts (a matrix). It is similar to the CONTRAST clause of SAS PROC GLM. This can test the hypothesis that the linear combination (function)'s mean vector is mu.
Returns sum of square and its F value and p-value.
Df |
degree of freedom |
Sum Sq |
sum of square for the set of contrasts |
Mean Sq |
mean square |
F value |
F value for the F distribution |
Pr(>F) |
proability of larger than F value |
Kyun-Seop Bae k@acr.kr
cSS
CONTR(t(c(0, -1, 1)), uptake ~ Type, CO2) # sum of square
GLM(uptake ~ Type, CO2) # compare with the above
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.