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
1 | synth_cellsize(start, marginal)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.