Skip to contents

Computes the Standard Error of the weighted sample mean.

Usage

sewm(x, weights, var.est = "default", ...)

Arguments

x

vector of measurements

weights

vector of weights

var.est

a character string, the estimator for the variance of the weighted mean

...

further arguments to var.est

Value

A length-one numeric vector.

Details

The standard error of the sample mean is its standard deviation, i.e. the square root of the variance of the estimate

$$SEM = \hat{\sigma}_{W}$$

Be aware that while stratification during sampling is not affecting the estimate of the mean, it may affect its standard error.

Different options for the calculation of the variance are here provided.

See also

uevarwm for more information on the default estimate of the variance.

Author

Alessandro Barberis