PARL {CMHNPA} | R Documentation |
PARL Test
Description
PARL
returns the test statistic and p-value for the aligned RL test
performed as a permutation test.
Usage
PARL(y, treatment, block1, block2, N_perms = 1000, components = FALSE)
Arguments
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 |
N_perms |
The number of permutations to perform. |
components |
a TRUE or FALSE flag to indicate whether component p-values should be calculated. |
Details
This test is applicable to Latin square designs and is recommended over the RL and ARL test. The CARL test is much faster to run.
Value
The PARL test statistic together with the associated p-value. Component p-values may also be calculated and shown.
References
Rayner, J.C.W and Livingston Jr, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.
See Also
Examples
attach(peanuts)
PARL(y = yield, treatment = treatment, block1 = row, block2 = col,
components = TRUE)