synth_cellsize: Synthetic expansion

Description Usage Arguments

View source: R/synth.R

Description

Creates a synthetic post-stratification dataset by simple multiplication, i.e. distribution of variables in new cells (entered as marginals) are orthogonal to original counts

Usage

1
synth_cellsize(start, marginal)

Arguments

start

starting cell counts. These will have been estimated by census data.

marginal

new information we want to incorporate by synthetic approach, usually only as a marginal distribution. Must be a dataframe with three variables: the geography variable (same name for original count data), one variable that indicates the category of the new variable (e.g. "voted" and "not voted"), and a variable called "frac" which indicates the proportion of people of that category within that geography – i.e. all values within a geography must sum to 1.


kuriwaki/sparseregMRP documentation built on March 20, 2020, 9:58 p.m.