orthogonal_scores {CMHNPA}R Documentation

orthogonal_scores

Description

orthogonal_scores returns orthogonal scores weighted by prevalence in the data.

Usage

orthogonal_scores(x, degree, n_strata = 1)

Arguments

x

a vector of scores, either a factor or numeric.

degree

the degree of orthogonal scores required.

n_strata

optional argument for indicating the number of strata to apply the scores to.

Value

Returns a matrix of orthogonal scores.

References

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

Examples

attach(jam)
orthogonal_scores(x = sweetness, degree = 2, n_strata = 8)

[Package CMHNPA version 1.1.1 Index]