vhat_strata | R Documentation |
Estimated variance of a total estimation for a strata
vhat_strata(data, INDEX, weights)
data |
a data frame of individual data. In this version, data should be the complete dataset of the sample. |
INDEX |
a right hand formula whose result is a logical vector that indicates the observations for which the variance has to be estimated (see the examples below) |
weights |
character string with the name of the column of weights |
str(d)
vhat_strata(d, INDEX = ~ xcat == "cat1", weights = "w")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.