Description Usage Arguments Details Value Examples
Weight a survey using post-stratification with weighting indicator(s) from ACS tables
1 2 3 | weight_wwc(mysurvey, ..., force_edu = FALSE)
weight_wwc_(mysurvey, dots, force_edu = FALSE)
|
mysurvey |
A survey data frame, such as that created by
|
... |
Weighting indicator(s) to be used for post-stratification.
One or more of |
force_edu |
Should the weighting be done with the ACS education tables?
Defaults to |
dots |
List of weighting indicator(s) as string(s) |
weight_wwc
is given bare names while weight_wwc_
is
given strings and is therefore suitable for programming with. One column of
mysurvey
must be geography
, to indicate what ACS data to use
for post-stratification weighting.
The original survey data frame with 1 column added, weight
,
the post-stratification weight for each row in the survey.
1 2 3 4 | data(texassurvey)
weight_wwc(texassurvey, sex, raceethnicity)
data(twostatessurvey)
weight_wwc(twostatessurvey, sex, education)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.