Description Usage Arguments Author(s) Examples
Gets state level marginal proportions for varyings groups such as age, sex, education, race
1 | get_margins(states, vars, custom_margins = NULL)
|
states |
Character vector of state abbreviations. Alternatively or you can pass it ‘ALL’ to get margins for all states in DC. |
vars |
List of variables to get marginal proportions for each state: sex, age, race, education. |
custom_margins |
James Wyatt
1 | get_margins(states = c('DC', 'FL'), vars = c('sex', 'age', 'education', 'race', 'obama12'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.