CRAN/E | wru

wru

Who are You? Bayesian Prediction of Racial Category Using Surname, First Name, Middle Name, and Geolocation

Installation

About

Predicts individual race/ethnicity using surname, first name, middle name, geolocation, and other attributes, such as gender and age. The method utilizes Bayes' Rule (with optional measurement error correction) to compute the posterior probability of each racial category for any given individual. The package implements methods described in Imai and Khanna (2016) "Improving Ecological Inference by Predicting Individual Ethnicity from Voter Registration Records" Political Analysis doi:10.1093/pan/mpw001 and Imai, Olivella, and Rosenman (2022) "Addressing census data problems in race imputation via fully Bayesian Improved Surname Geocoding and name supplements" doi:10.1126/sciadv.adc9824. The package also incorporates the data described in Rosenman, Olivella, and Imai (2023) "Race and ethnicity data for first, middle, and surnames" doi:10.1038/s41597-023-02202-2.

github.com/kosukeimai/wru
Bug report File report

Key Metrics

Version 3.0.2
R ≥ 4.1.0
Published 2024-04-04 24 days ago
Needs compilation? yes
License GPL (≥ 3)
CRAN checks wru results

Downloads

Yesterday 20 0%
Last 7 days 138 -11%
Last 30 days 708 -14%
Last 90 days 2.234 +21%
Last 365 days 7.193 -63%

Maintainer

Maintainer

Brandon Bertelsen

brandon@bertelsen.ca

Authors

Kabir Khanna

aut

Brandon Bertelsen

aut / cre

Santiago Olivella

aut

Evan Rosenman

aut

Alexander Rossell Hayes

aut

Kosuke Imai

aut

Material

README
Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

wru archive

Depends

R ≥ 4.1.0
utils

Imports

cli
dplyr
tidyr
furrr
future
piggyback ≥ 0.1.4
PL94171
purrr
Rcpp
rlang

Suggests

covr
testthat ≥ 3.0.0
tidycensus

LinkingTo

Rcpp
RcppArmadillo