Description Usage Arguments Value
Sample households PUMS accoording to IPF
1 2 | sample_ipf(n_house, pums_h, pums_p, marginals, alpha = 0, k = 0.001,
puma_id = NULL, place_id = NULL)
|
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 |
households data frame with re-sampled pums_h households
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.