impute_race | R Documentation |
If you want to pass age, sex, and party, pass it exactly as in wru so that the ellipsis captures it. Detailed documentation will follow soon.
impute_race( df, census, state = "sSitusState", surname = "szNameLast", county = "county_fips", tract = "census_tract", block = "census_block", id = "lVoterUniqueID", keep_probs = FALSE, ... )
df |
Dataframe prepped for wru::predict_race. |
census |
Census object. |
state |
State variable. |
surname |
Surname variable. |
county |
County variable. |
tract |
Tract variable. |
block |
Block variable. |
id |
ID variable. |
keep_probs |
Whether to keep the underlying probabilities generating the classification. |
... |
Other arguments to be passed to wru::predict_race. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.