uM2pool: Pooled central moment estimates - two-sample

Description Usage Arguments Value See Also Examples

View source: R/unbmom2.R

Description

Calculate pooled unbiased estimates of central moments and their powers and products.

Usage

1
uM2pool(m2, n_x, n_y)

Arguments

m2

naive biased variance estimate m[2] = mean(c((X - X-bar)^2, (Y - Y-bar)^2)) for vectors X and Y.

n_x

number of observations in the first group.

n_y

number of observations in the second group.

Value

Pooled variance estimate.

See Also

Other pooled estimates (two-sample): uM2M3pool, uM2M4pool, uM2pow2pool, uM2pow3pool, uM3pool, uM3pow2pool, uM4pool, uM5pool, uM6pool

Examples

1
2
3
4
5
6
7
nx <- 10
ny <- 8
shp <- 3
smpx <- rgamma(nx, shape = shp) - shp
smpy <- rgamma(ny, shape = shp)
m2 <- mean(c((smpx - mean(smpx))^2, (smpy - mean(smpy))^2))
uM2pool(m2, nx, ny)

innager/Umoments documentation built on June 24, 2021, 8:23 p.m.