Learn R Programming

CMHNPA (version 1.1.1)

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

Value

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

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.

References

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

Examples

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

Run the code above in your browser using DataLab