getSyntheticPSFrame: Generate a synthetic poststratification frame

Description Usage Arguments Value

View source: R/poststratificationFunctions.R

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 Oct. 15, 2020, 8:30 p.m.