RL {CMHNPA} | R Documentation |
RL
returns the test statistic and p-value for the RL test. This test
is applicable to Latin square designs. The test is not recommended though as
block effects contaminate the response variable leading to unacceptable test
size.
RL(y, treatment, block1, block2)
y |
a numericc vector for the response variable. |
treatment |
a vector giving the treatment type for the corresponding
elements of |
block1 |
a vector giving the first blocking variable for the
corresponding elements of |
block2 |
a vector giving the second blocking variable for the
corresponding elements of |
A list containing the RL test statistic adjusted for ties together with the associated p-value using a chi-squared distribution with t-1 degrees of freedom.
Rayner, J.C.W and Livingston, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.
attach(peanuts)
RL(y = yield, treatment = treatment, block1 = row, block2 = col)