Learn R Programming

CMHNPA (version 1.1.1)

mu_r: mu_r

Description

mu_r returns the estimated rth moment of a vector.

Usage

mu_r(x, r)

Value

Returns the estimated rth moment of a vector.

Arguments

x

a numeric vector.

r

the degree moment requiring calculation

References

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

Examples

Run this code
x_vec = rnorm(10)
mu_r(x_vec,2)

Run the code above in your browser using DataLab