solve_mm_for_var: Do the MM solving for an individual variable

Description Usage Arguments Value

View source: R/mm.R

Description

Do the MM solving for an individual variable

Usage

1
solve_mm_for_var(var_ind, place_id, mm_row, pums, assumption, meq = 2)

Arguments

var_ind

variable index of mm_row, colname should match one in PUMS.

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

"independence"

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.