R/synth_rake.R
rake_spf.Rd
With microdata or a table that includes both
rake_spf(outcome_var, data, fix_to, area_var, count_var = "count")
A string for the variable to match the proportion to
Data of microdata or tables whose margin on outcom_var
must be fixed
A dataset with only marginal counts or proportions of the outcome in question, by each area. Proportions will be corrected so that the margins of the synthetic joint will match these, with a simple ratio.
A character vector of the area of interest.
A character variable that specifies which variable in poptable
indicates the count