Learn R Programming

CMHNPA (version 1.1.1)

Poly: Poly

Description

Poly returns t-1 orthonormal scores weighted by a weights parameter. The function uses Emerson Recursion.

Usage

Poly(x, p)

Value

Returns a matrix of orthomornal scores based on the weights provided.

Arguments

x

a vector of numeric scores.

p

a vector of weights corresponding to the elements of x.

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

Run this code
x = 1:5
p = rep(0.2,5)
Poly(x = x, p = p)

Run the code above in your browser using DataLab