solve_mm_for_joint: Do the Moment Matching solving for joint distribution

Description Usage Arguments Value

View source: R/mm.R

Description

Do the Moment Matching solving for joint distribution

Usage

1
solve_mm_for_joint(place_id, mm_row, pums, assumption, meq = 2)

Arguments

place_id

unique code identifying the place

mm_row

dataframe of 1 row, includes place_id, puma_id, and averages, with names matching PUMS

pums

the subsetted PUMS from which the sample will be drawn

assumption

"joint"

meq

(number of moments + 1) to match (2 is default and corresponds to matching the average)

Value

x vector of length of the number of records in the PUMS. These are probabilities for each of the records in the PUMS.


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