Calculate pooled unbiased estimates of central moments and their powers and products.
uM6pool(m2, m3, m4, m6, n_x, n_y)
Unbiased estimate of a sixth central moment.
naive biased variance estimate X
and Y
.
naive biased third central moment estimate X
and Y
.
naive biased fourth central moment estimate X
and Y
.
naive biased sixth central moment estimate X
and Y
.
number of observations in the first group.
number of observations in the second group.
Other pooled estimates (two-sample):
uM2M3pool()
,
uM2M4pool()
,
uM2pool()
,
uM2pow2pool()
,
uM2pow3pool()
,
uM3pool()
,
uM3pow2pool()
,
uM4pool()
,
uM5pool()
nx <- 10
ny <- 8
shp <- 3
smpx <- rgamma(nx, shape = shp) - shp
smpy <- rgamma(ny, shape = shp)
mx <- mean(smpx)
my <- mean(smpy)
m <- numeric(6)
for (j in 2:6) {
m[j] <- mean(c((smpx - mx)^j, (smpy - my)^j))
}
uM6pool(m[2], m[3], m[4], m[6], nx, ny)
Run the code above in your browser using DataLab