Skip to content

wru

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

v3.0.3 · May 24, 2024 · GPL (>= 3)

Description

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

Downloads

571

Last 30 days

7063rd

1.6K

Last 90 days

9.2K

Last year

Trend: +1.1% (30d vs prior 30d)

CRAN Check Status

5 NOTE
9 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (5 non-OK)
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘future’ ‘tidyr’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘future’ ‘tidyr’
  All declared Imports should be used.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  7.1Mb
  sub-directories of 1Mb or more:
    data   3.7Mb
    help   1.9Mb
    libs   1.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  7.1Mb
  sub-directories of 1Mb or more:
    data   3.7Mb
    help   1.9Mb
    libs   1.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    data   3.5Mb
    help   1.9Mb

Check History

NOTE 9 OK · 5 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespaces in Imports field not imported from:
  ‘future’ ‘tidyr’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespaces in Imports field not imported from:
  ‘future’ ‘tidyr’
  All declared Imports should be used.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  7.1Mb
  sub-directories of 1Mb or more:
    data   3.7Mb
    help   1.9Mb
    libs   1.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  7.1Mb
  sub-directories of 1Mb or more:
    data   3.7Mb
    help   1.9Mb
    libs   1.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    data   3.5Mb
    help   1.9Mb

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies cli dplyr tidyr furrr future piggyback PL94171 purrr Rcpp rlang birdie wru

Version History

new 3.0.3 Mar 10, 2026
updated 3.0.3 ← 3.0.2 diff May 23, 2024
updated 3.0.2 ← 3.0.1 diff Apr 3, 2024
updated 3.0.1 ← 3.0.0 diff Feb 27, 2024
updated 3.0.0 ← 1.0.1 diff Feb 15, 2024
updated 1.0.1 ← 1.0.0 diff Oct 20, 2022
updated 1.0.0 ← 0.1-12 diff Jun 20, 2022
updated 0.1-12 ← 0.1-11 diff May 16, 2021
updated 0.1-11 ← 0.1-10 diff Apr 21, 2021
updated 0.1-10 ← 0.1-9 diff Oct 21, 2020
updated 0.1-9 ← 0.1-8 diff Feb 20, 2019
updated 0.1-8 ← 0.1-7 diff Feb 12, 2019
updated 0.1-7 ← 0.1-6 diff Aug 31, 2017
updated 0.1-6 ← 0.1-5 diff Aug 16, 2017
updated 0.1-5 ← 0.1-4 diff Jun 8, 2017
updated 0.1-4 ← 0.1-3 diff May 4, 2017
updated 0.1-3 ← 0.1-2 diff Apr 13, 2017
updated 0.1-2 ← 0.1-1 diff Mar 4, 2017
updated 0.1-1 ← 0.0-2 diff Dec 12, 2016
updated 0.0-2 ← 0.0-1 diff Mar 10, 2016