get_margins: MRmP - State Margins

Description Usage Arguments Author(s) Examples

Description

Gets state level marginal proportions for varyings groups such as age, sex, education, race

Usage

1
get_margins(states, vars, custom_margins = NULL)

Arguments

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

Author(s)

James Wyatt

Examples

1
get_margins(states = c('DC', 'FL'), vars = c('sex', 'age', 'education', 'race', 'obama12'))

jwyatt85/MRmP documentation built on May 20, 2019, 6:27 a.m.