View source: R/variance_function.R
var_pois | R Documentation |
var_pois
estimates the variance of the estimator
of a total for a Poisson sampling design.
var_pois(y, pik, w = rep(1, length(pik)))
y |
A (sparse) numerical matrix of the variable(s) whose variance of their total is to be estimated. |
pik |
A numerical vector of first-order inclusion probabilities. |
w |
An optional numerical vector of row weights (see Details). |
w
is a row weight used at the final summation step. It is useful
when var_pois
is used on the second stage of a two-stage sampling
design applying the Rao (1975) formula.
The estimated variances as a numerical vector of size the number of
columns of y
.
Martin Chevalier
Rao, J.N.K (1975), "Unbiased variance estimation for multistage designs", Sankhya, C n°37
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.