Description Usage Arguments Details Value Source Examples
View source: R/sampling_functions.R
Propensity Score that oversamples high education and high-news interest people
1 2 3 | p_highed(data)
samp_highed(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 whether or not you are in an urban district. There is no explicit correlation between selection and the outcome (say, partisanship), so Meng's rho would be non-zero only so far as the covariates correlates with race, education, and news interest.
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.