create_pums_survey | R Documentation |
This function uses the 'srvy' package to create a survey design from the PUMS dataset with replicate weights. Survey designs can be creaed for the household or population datasets.
create_pums_survey(data_frame, wgt, rep_wgt)
data_frame |
A data frame used in the function to create the table. |
wgt |
Name of the weight column, unquoted; either 'WGTP' (household) or 'PWGTP' (population). |
rep_wgt |
Name of the replicate weight columns as quoted regular expressions. Either '"WGTP[0-9]+"' (household) or '"PWGTP[0-9]+"' (population) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.