Package: wru 3.1.1

Brandon Bertelsen

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

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>.

Authors:Kabir Khanna [aut], Brandon Bertelsen [aut, cre], Santiago Olivella [aut], Evan Rosenman [aut], Alexander Rossell Hayes [aut], Kosuke Imai [aut], Noah Dasanaike [aut]

wru_3.1.1.tar.gz
wru_3.1.1.zip(r-4.7)wru_3.1.1.zip(r-4.6)wru_3.1.1.zip(r-4.5)
wru_3.1.1.tgz(r-4.6-x86_64)wru_3.1.1.tgz(r-4.6-arm64)wru_3.1.1.tgz(r-4.5-x86_64)wru_3.1.1.tgz(r-4.5-arm64)
wru_3.1.1.tar.gz(r-4.7-arm64)wru_3.1.1.tar.gz(r-4.7-x86_64)wru_3.1.1.tar.gz(r-4.6-arm64)wru_3.1.1.tar.gz(r-4.6-x86_64)
wru_3.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
wru/json (API)

# Install 'wru' in R:
install.packages('wru', repos = c('https://kosukeimai.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kosukeimai/wru/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

7.11 score 139 stars 153 scripts 602 downloads 6 exports 71 dependencies

Last updated from:96995a9aa1. Checks:10 NOTE, 2 OK, 1 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE222
linux-devel-x86_64NOTE190
source / vignettesOK224
linux-release-arm64NOTE191
linux-release-x86_64NOTE163
macos-release-arm64ERROR127
macos-release-x86_64NOTE365
macos-oldrel-arm64NOTE121
macos-oldrel-x86_64NOTE271
windows-develNOTE140
windows-releaseNOTE151
windows-oldrelNOTE186
wasm-releaseOK153

Exports:as_fips_codeas_state_abbreviationformat_legacy_dataget_census_datapredict_racesetup_ebisg

Dependencies:askpassbitbit64cachemclassclassIntclicliprcodetoolscpp11crayoncurlDBIdigestdplyre1071fastmapforeignfsfurrrfuturegenericsgitcredsglobalsgluehmshttrhttr2inijsonliteKernSmoothlifecyclelistenvlubridatemagrittrMASSmemoisemimeopensslparallellypiggybackpillarpkgconfigPL94171prettyunitsprogressproxypurrrR6rappdirsRcppRcppArmadilloreadrrlangs2sfstringistringrsystibbletidyrtidyselecttimechangetinytigertzdbunitsutf8vctrsvroomwithrwk