powered by
orthogonal_scores returns orthogonal scores weighted by prevalence in the data.
orthogonal_scores
orthogonal_scores(x, degree, n_strata = 1)
Returns a matrix of orthogonal scores.
a vector of scores, either a factor or numeric.
the degree of orthogonal scores required.
optional argument for indicating the number of strata to apply the scores to.
Rayner, J.C.W and Livingston, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley.
attach(jam) orthogonal_scores(x = sweetness, degree = 2, n_strata = 8)
Run the code above in your browser using DataLab