Description Usage Arguments Value
Make moment matching object
1 2 | make_mm_obj(moments_list, assumption = "independence", nMom = 1,
type = "cont", region = NULL, path = NULL)
|
moments_list |
a list with each entry as a data frame. The first df is the first moments, the second the second moments, etc. Each df has the following format: place_id | puma_id | var1 moment | var 2 moment |. The dfs are named mom1, mom2, ... |
assumption |
is either "independent" or "joint". "independent" assumes that the distributions of the characteristics are independent of one another. "joint" means we use the empirical distribution of the microdata when finding weights in moment matching. |
nMom |
number of moments. Currently, we only support the first moment, e.g. the average of a variable. Default is 1. |
type |
either "cont" for continuous variable or "ord" for ordered variable |
region |
identifier for region |
path |
if not NULL we will save this object to the specified path as a RDS object. |
list of moment object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.