Description Usage Arguments Details Value Source Examples
View source: R/sampling_functions.R
Propensity Score that oversamples high education, high-news interest, and Democratic people
1 2 3 | p_eddem(data)
samp_eddem(data, n)
|
data |
A tibble with the columns race, educ, newsint, as coded by the CCES |
n |
Sample size to sample |
We model the true propensity score as being a separable function of race, education, news interest, and party.
A vector of propensity scores ranging from 0 to 1
Inspired by Lauren Kennedy's code in rstanarm
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.