row_col_effect {CMHNPA}R Documentation

Row and column effects

Description

row_col_effects returns the values of the row and column effects. This can be used to remove these effects from the response in a process call aligning. This is particularly applicable in LSD data.

Usage

row_col_effect(to_align, rows, cols)

Arguments

to_align

a numeric response vector.

rows

a vector giving the row effects for y.

cols

a vector giving the column effects for y.

Value

A vector of row and column effects. The response vector less this is the aligned response variable.

References

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

Examples

attach(peanuts)
row_col_effect(to_align = yield, rows = row, cols = col)

[Package CMHNPA version 1.1.1 Index]