ARL {CMHNPA}R Documentation

ARL Test

Description

ARL returns the test statistic and p-value for the aligned RL test.

Usage

ARL(y, treatment, block1, block2)

Arguments

y

a numeric 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.

Details

This test is applicable to Latin square designs. The test is not recommended though as the use of t-1 degrees of freedom in the null distribution results in unsatisfactorily large test sizes.

The CARL test uses t+1 degrees of freedom in the null distribution which results is appropriate test size and good power.

Value

A list containing the ARL test statistic adjusted for ties together with the associated p-value using a chi-squared distribution with t-1 degrees of freedom.

References

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

See Also

CARL() PARL()

Examples

attach(peanuts)
ARL(y = yield, treatment = treatment, block1 = row, block2 = col)


[Package CMHNPA version 1.1.1 Index]