wtdvar | R Documentation |

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

wtdvar(x,w,na.rm=TRUE)

`x` |
data vector |

`w` |
vector of survey weights; must be same length as |

`na.rm` |
remove missing values (TRUE or FALSE) |

`wtdvar`

is also used by `BW3stagePPSe`

in estimating relvariance components.

numeric estimate of population unit variance

Richard Valliant, Jill A. Dever, Frauke Kreuter

Valliant, R., Dever, J., Kreuter, F. (2018, chap. 9). *Practical Tools for Designing and Weighting Survey Samples, 2nd edition*. Springer.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.