Moment Conversion
conv_moment_all.Rd
This function converts moments of a distribution to and from central and raw ones. Raw moments about a origin can be converted to raw moments with another origin.
Details
If you want to convert to central moment, use the same function. Just remember to use the arithmetic mean as the new origin.
Mean = First raw moment about a
+ a
; where a
is the old origin.
Examples
x <- c(1, 16, -40)
conv_moment_all(x, 2, 0)
#> [1] 3 24 76