powered by
PARL returns the test statistic and p-value for the aligned RL test performed as a permutation test.
PARL
PARL(y, treatment, block1, block2, N_perms = 1000, components = FALSE)
The PARL test statistic together with the associated p-value. Component p-values may also be calculated and shown.
a numericc vector for the response variable.
a vector giving the treatment type for the corresponding elements of y.
y
a vector giving the first blocking variable for the corresponding elements of y.
a vector giving the second blocking variable for the corresponding elements of y.
The number of permutations to perform.
a TRUE or FALSE flag to indicate whether component p-values should be calculated.
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.
Rayner, J.C.W and Livingston Jr, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.
ARL() CARL()
ARL()
CARL()
attach(peanuts) PARL(y = yield, treatment = treatment, block1 = row, block2 = col, components = TRUE)
Run the code above in your browser using DataLab