Learn R Programming

CMHNPA (version 1.1.1)

PARL: 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)

Value

The PARL test statistic together with the associated p-value. Component p-values may also be calculated and shown.

Arguments

y

a numericc vector for the response variable.

treatment

a vector giving the treatment type for the corresponding elements of y.

block1

a vector giving the first blocking variable for the corresponding elements of y.

block2

a vector giving the second blocking variable for the corresponding elements of y.

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.

References

Rayner, J.C.W and Livingston Jr, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.

See Also

ARL() CARL()

Examples

Run this code
attach(peanuts)
PARL(y = yield, treatment = treatment, block1 = row, block2 = col,
components = TRUE)

Run the code above in your browser using DataLab