sample_ipf: Sample households PUMS accoording to IPF

Description Usage Arguments Value

View source: R/ipf.R

Description

Sample households PUMS accoording to IPF

Usage

1
2
sample_ipf(n_house, pums_h, pums_p, marginals, alpha = 0, k = 0.001,
  puma_id = NULL, place_id = NULL)

Arguments

n_house

number of households to sample

pums_h

household pums

pums_p

people pums, for appending on certain variables

marginals

list with characteristics of marginals

alpha

number between 0 and 1, weight of categorical variables

k

number between 0 and 1, weight of orginal variables

puma_id

id indicating the current puma

place_id

id indicating the current region

Value

households data frame with re-sampled pums_h households


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