Poly {CMHNPA} | R Documentation |
Poly
returns t-1 orthonormal scores weighted by a weights parameter.
The function uses Emerson Recursion.
Poly(x, p)
x |
a vector of numeric scores. |
p |
a vector of weights corresponding to the elements of x. |
Returns a matrix of orthomornal scores based on the weights provided.
Rayner, J.C.W and Livingston, G. C. (2022). An Introduction to Cochran-Mantel-Haenszel Testing and Nonparametric ANOVA. Wiley. Rayner, J.C.W., Thas, O. and De Boeck, B. (2008), A GENERALIZED EMERSON RECURRENCE RELATION. Australian & New Zealand Journal of Statistics, 50: 235-240.
x = 1:5
p = rep(0.2,5)
Poly(x = x, p = p)