make_mm_obj: Make moment matching object

Description Usage Arguments Value

View source: R/mm.R

Description

Make moment matching object

Usage

1
2
make_mm_obj(moments_list, assumption = "independence", nMom = 1,
  type = "cont", region = NULL, path = NULL)

Arguments

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.

Value

list of moment object


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