Package: wru 4.0.0

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>, 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>, Dasanaike and Imai (2026) "Using Embedding Models to Improve Probabilistic Race Prediction"

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_4.0.0.tar.gz
wru_4.0.0.zip(r-4.7-x86_64)wru_4.0.0.zip(r-4.7-arm64)wru_4.0.0.zip(r-4.6-x86_64)wru_4.0.0.zip(r-4.6-arm64)wru_4.0.0.zip(r-4.5-x86_64)
wru_4.0.0.tgz(r-4.6-x86_64)wru_4.0.0.tgz(r-4.6-arm64)wru_4.0.0.tgz(r-4.5-x86_64)wru_4.0.0.tgz(r-4.5-arm64)
wru_4.0.0.tar.gz(r-4.7-arm64)wru_4.0.0.tar.gz(r-4.7-x86_64)wru_4.0.0.tar.gz(r-4.6-arm64)wru_4.0.0.tar.gz(r-4.6-x86_64)
wru_4.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
wru/json (API)

# Install 'wru' in R:
install.packages('wru', repos = c('https://alarm-redist.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.76 score 141 stars 136 scripts 746 downloads 6 exports 67 dependencies

Last updated from:f1f8698079. Checks:12 NOTE, 2 OK, 1 ERROR. Indexed: no.
A new build is currently in progress.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE133
linux-devel-x86_64NOTE174
source / vignettesOK240
linux-release-arm64NOTE145
linux-release-x86_64NOTE162
macos-release-arm64ERROR142
macos-release-x86_64NOTE274
macos-oldrel-arm64NOTE137
macos-oldrel-x86_64NOTE391
windows-devel-arm64NOTE237
windows-devel-x86_64NOTE153
windows-release-arm64NOTE280
windows-release-x86_64NOTE107
windows-oldrel-x86_64NOTE121
wasm-releaseOK157

Exports:as_fips_codeas_state_abbreviationformat_legacy_dataget_census_datapredict_racesetup_ebisg

Dependencies:askpassbitbit64cachemclassclassIntclicliprcodetoolscpp11crayoncurlDBIdplyre1071fastmapforeignfsfurrrfuturegenericsgitcredsglobalsgluehmshttrhttr2inijsonliteKernSmoothlifecyclelistenvlubridatemagrittrmemoisemimeopensslparallellypiggybackpillarpkgconfigPL94171prettyunitsprogressproxypurrrR6RcppRcppArmadilloreadrrlangs2sfstringistringrsystibbletidyselecttimechangetinytigertzdbunitsutf8vctrsvroomwithrwk