wru: Who Are You? Bayesian Prediction of Racial Category Using Surname and Geolocation

This open-source software package enables researchers to predict individual ethnicity using his/her surname, geolocation, and other attributes such as gender and age. The method utilizes the Bayes' rule to compute the posterior probability of each racial category for any given individual voter. The package implements methods described in Imai and Khanna (2016) <DOI:10.1093/pan/mpw001>.

Author
Kabir Khanna [aut, cre], Kosuke Imai [aut, cre]
Date of publication
2016-03-11 10:27:52
Maintainer
Kabir Khanna <kkhanna@princeton.edu>
License
GPL (>= 3)
Version
0.0-2

View on CRAN

Man pages

census.helper.api
Census helper function.
getCensusApi
Census API function.
getCensusApi2
Census API URL assembler.
name.clean
Name cleaning and matching function.
names.all
Dataset containing Census Surname List and Spanish Surname...
pid
Dataset containing distribution of party registration by...
race.pred
Race prediction function.
State.FIPS
Dataset containing FIPS codes for each state.
vecToChunk
Variable vector into chunks.
voters
Dataset containing example voter file.

Files in this package

wru
wru/NAMESPACE
wru/data
wru/data/State.FIPS.RData
wru/data/voters.RData
wru/data/names.all.RData
wru/data/datalist
wru/data/pid.RData
wru/R
wru/R/census.helper.api.R
wru/R/name.clean.R
wru/R/vecToChunk.R
wru/R/getCensusApi2.R
wru/R/race.pred.R
wru/R/getCensusApi.R
wru/README.md
wru/MD5
wru/DESCRIPTION
wru/ChangeLog
wru/man
wru/man/race.pred.Rd
wru/man/census.helper.api.Rd
wru/man/getCensusApi.Rd
wru/man/State.FIPS.Rd
wru/man/pid.Rd
wru/man/names.all.Rd
wru/man/voters.Rd
wru/man/vecToChunk.Rd
wru/man/name.clean.Rd
wru/man/getCensusApi2.Rd