Learn R Programming

⚠️There's a newer version (3.0.3) of this package.Take me there.

wru

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

The R package implements the methods proposed in Imai, Kosuke and Kabir Khanna. ``Improving Ecological Inference by Predicting Individual Ethnicity from Voter Registration Record.'' available at http://imai.princeton.edu/research/race.html

Copy Link

Version

Install

install.packages('wru')

Monthly Downloads

449

Version

0.0-2

License

GPL (>= 3)

Maintainer

Kabir Khanna

Last Published

March 11th, 2016

Functions in wru (0.0-2)

race.pred

Race prediction function.
getCensusApi2

Census API URL assembler.
census.helper.api

Census helper function.
getCensusApi

Census API function.
name.clean

Name cleaning and matching function.
pid

Dataset containing distribution of party registration by race.
voters

Dataset containing example voter file.
vecToChunk

Variable vector into chunks.
State.FIPS

Dataset containing FIPS codes for each state.
names.all

Dataset containing Census Surname List and Spanish Surname Lists.