mu_r {CMHNPA}R Documentation

mu_r

Description

mu_r returns the estimated rth moment of a vector.

Usage

mu_r(x, r)

Arguments

x

a numeric vector.

r

the degree moment requiring calculation

Value

Returns the estimated rth moment of a vector.

References

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

Examples

x_vec = rnorm(10)
mu_r(x_vec,2)

[Package CMHNPA version 1.1.1 Index]