p_eddem: High News Interest + Democrat Oversample

Description Usage Arguments Details Value Source Examples

View source: R/sampling_functions.R

Description

Propensity Score that oversamples high education, high-news interest, and Democratic people

Usage

1
2
3

Arguments

data

A tibble with the columns race, educ, newsint, as coded by the CCES

n

Sample size to sample

Details

We model the true propensity score as being a separable function of race, education, news interest, and party.

Value

A vector of propensity scores ranging from 0 to 1

Source

Inspired by Lauren Kennedy's code in rstanarm

Examples

1
p_eddem(sample_n(pop_cces, 100))

kuriwaki/svysim documentation built on Jan. 27, 2021, 5:37 a.m.