Package: wru
Title: Who are You? Bayesian Prediction of Racial Category Using
        Surname, First Name, Middle Name, and Geolocation
Version: 4.0.0
Date: 2026-05-22
Authors@R: c(
    person("Kabir", "Khanna", , "kabirkhanna@gmail.com", role = "aut"),
    person("Brandon", "Bertelsen", , "brandon@bertelsen.ca", role = c("aut", "cre")),
    person("Santiago", "Olivella", , "olivella@unc.edu", role = "aut"),
    person("Evan", "Rosenman", , "etrrosenman@gmail.com", role = "aut"),
    person("Alexander", "Rossell Hayes", , "alexander@rossellhayes.com", role = "aut"),
    person("Kosuke", "Imai", , "imai@harvard.edu", role = "aut"),
    person("Noah", "Dasanaike", , "noahdasanaike@g.harvard.edu", role = "aut")
  )
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>, 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"
<DOI: arXiv:2604.22555>, Chasalow, Dasanaike, and Imai (2026)
        "Probabilistic Race and Ethnicity Prediction Using
        Group-Specific Name Lists" <DOI: arXiv:2610.06273> 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>.
License: GPL (>= 3)
URL: https://github.com/kosukeimai/wru
BugReports: https://github.com/kosukeimai/wru/issues
Depends: R (>= 4.1.0), utils
Imports: cli, dplyr, furrr, piggyback (>= 0.1.4), PL94171, purrr, Rcpp,
        rlang
Suggests: covr, future, reticulate, testthat (>= 3.0.0), tidycensus,
        tidyr
LinkingTo: Rcpp, RcppArmadillo
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: yes
LazyDataCompression: xz
LazyLoad: yes
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Config/pak/sysreqs: libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev
        git make libicu-dev libuv1-dev libssl-dev libproj-dev
        libsqlite3-dev libudunits2-dev libx11-dev
Repository: https://kosukeimai.r-universe.dev
Date/Publication: 2026-10-06 17:44:58 UTC
RemoteUrl: https://github.com/kosukeimai/wru
RemoteRef: HEAD
RemoteSha: 6fd31fa2b8bd76062a33ea35b973fa7855efc4f1
NeedsCompilation: yes
Packaged: 2026-10-07 09:12:13 UTC; root
Author: Kabir Khanna [aut],
  Brandon Bertelsen [aut, cre],
  Santiago Olivella [aut],
  Evan Rosenman [aut],
  Alexander Rossell Hayes [aut],
  Kosuke Imai [aut],
  Noah Dasanaike [aut]
Maintainer: Brandon Bertelsen <brandon@bertelsen.ca>
