uM2 | R Documentation |
Calculate unbiased estimates of central moments and their powers and products.
uM2(m2, n)
m2 |
naive biased variance estimate |
n |
sample size. |
Unbiased variance estimate.
Other unbiased estimates (one-sample):
uM2M3()
,
uM2M4()
,
uM2pow2()
,
uM2pow3()
,
uM3()
,
uM3pow2()
,
uM4()
,
uM5()
,
uM6()
n <- 10
smp <- rgamma(n, shape = 3)
m <- mean(smp)
m <- c(m, mean((smp - m[1])^2))
uM2(m[2], n) - var(smp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.