Description Usage Arguments Details Value
Weight the records of the PUMS so the averages in mm_df will be obtained
1 2 | solve_mm_weights(place_id, mm_row, pums, assumption = "independence",
meq = 2)
|
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) |
the function solve.QP from the "quadprog" package is used.
x vector of length of the number of records in the PUMS. These are probabilities for each of the records.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.