epoststrat | R Documentation |
This is a wrap function to compute post-stratification weights based on simple sample design (probability sampling)
epoststrat(data, pop.prop, strata)
data |
a data frame with the data. The name of the (post) stratification variables and their categories must match the data provided in |
pop.prop |
a data frame with the population frequencies. Each column must be a (post) stratification variable. It must include a column |
strata |
a formula with the name of the variables for stratification. See |
It returns a list with two elements. The first element is the weight, the second is the trimmed weights. See trimWeights
for details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.