leaf_peep: Convert a data frame to weighting targets

Description Usage Arguments Value Examples

View source: R/leaf_peep.R

Description

Convert a data frame to weighting targets

Usage

1
leaf_peep(tbl, weight_col = NULL)

Arguments

tbl

A data frame of individual observations, e.g. census microdata

weight_col

A column of individual weights, as an unquoted name or character string

Value

A data frame of weighting targets

Examples

1
2
3
4
5
6
7
8
9
# Load a dataset of example microdata
acs_nh

# Generate weighting targets
leaf_peep(acs_nh)

# Microdata with a weights column
leaf_peep(acs_nh, weight_col = "PERWT")
leaf_peep(acs_nh, weight_col = PERWT)

rossellhayes/leafpeepr documentation built on Feb. 29, 2020, 12:48 a.m.