uM2pow3 | R Documentation |
Calculate unbiased estimates of central moments and their powers and products.
uM2pow3(m2, m3, m4, m6, n)
m2 |
naive biased variance estimate |
m3 |
naive biased third central moment estimate |
m4 |
naive biased fourth central moment estimate |
m6 |
naive biased sixth central moment estimate |
n |
sample size. |
Unbiased estimate of cubed second central moment
\mu_2^3
, where \mu_2
is a variance.
Other unbiased estimates (one-sample):
uM2()
,
uM2M3()
,
uM2M4()
,
uM2pow2()
,
uM3()
,
uM3pow2()
,
uM4()
,
uM5()
,
uM6()
n <- 10
smp <- rgamma(n, shape = 3)
m <- mean(smp)
for (j in 2:6) {
m <- c(m, mean((smp - m[1])^j))
}
uM2pow3(m[2], m[3], m[4], m[6], n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.