getSyntheticPSFrame: Generate a synthetic poststratification frame

Description Usage Arguments Value

Description

Returns a synthetic frequency distribution derived from the product of marginal distributions. in two input PSFrames. This can be repeated recursively to include more features.

Usage

1
getSyntheticPSFrame(PSFrame1, PSFrame2)

Arguments

PSFrame1

A dataframe containing the empirical frequency for each demographic group within each subnational unit

PSFrame

A dataframe containing the empirical frequency for each demographic group within each subnational unit

Value

A synthetic poststratification frame computed from the marginal frequencies in PSFrame1 and PSFrame2


joeornstein/SRP documentation built on May 11, 2019, 3:13 p.m.