make_ipf_obj: Set up for creating a set of marginal information for IPF...

Description Usage Arguments Value

View source: R/add_characteristics.R

Description

Set up for creating a set of marginal information for IPF sampling

Usage

1
2
make_ipf_obj(var_name, type = "ord", bounds, category_name,
  output_file = NULL, df = NULL)

Arguments

var_name

name of the variable matching the PUMS/microdata

type

"ord" for ordinal or "cat" for categorical, the type of variable to be converted to

bounds

dataframe of upper and lower bounds (inclusive) for variables (numeric)

category_name

short name of the category, will be visible to person. Either length one and the bounds will be pasted to it or length of the number of rows of the bounds with names of your choice.

output_file

if not NULL then we save the file as a RDS object to output_file

df

data frame with place_id and category counts

Value

a list in the format for use in IPF


spew documentation built on Nov. 17, 2017, 7:36 a.m.