create_pums_survey: Create a survey design object from the Census PUMS dataset

create_pums_surveyR Documentation

Create a survey design object from the Census PUMS dataset

Description

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.

Usage

create_pums_survey(data_frame, wgt, rep_wgt)

Arguments

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)


forsythfuture/FFtools documentation built on April 5, 2022, 10:02 p.m.