wtdvar: Compute weighted variance

Description Usage Arguments Details Value Author(s) References Examples

Description

Compute an estimate of a population unit variance from a complex sample with survey weights.

Usage

1
wtdvar(x,w)

Arguments

x

data vector

w

vector of survey weights; must be same length as x

Details

wtdvar is also used by BW3stagePPSe in estimating relvariance components.

Value

numeric estimate of population unit variance

Author(s)

Richard Valliant, Jill A. Dever, Frauke Kreuter

References

Valliant, R., Dever, J., Kreuter, F. (2013, chap. 9). Practical Tools for Designing and Weighting Survey Samples. Springer.

Examples

1
2
3
x <- c(1:3)
wts <- c(4, 6, 8)
wtdvar(x=x, w=wts)


Search within the PracTools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.