Poly {CMHNPA} | R Documentation |
Poly
Description
Poly
returns t-1 orthonormal scores weighted by a weights parameter.
The function uses Emerson Recursion.
Usage
Poly(x, p)
Arguments
x |
a vector of numeric scores. |
p |
a vector of weights corresponding to the elements of x. |
Value
Returns a matrix of orthomornal scores based on the weights provided.
References
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.
Examples
x = 1:5
p = rep(0.2,5)
Poly(x = x, p = p)
[Package CMHNPA version 1.1.1 Index]