Package: wru 3.0.4
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:
wru_3.0.4.tar.gz
wru_3.0.4.zip(r-4.5)wru_3.0.4.zip(r-4.4)wru_3.0.4.zip(r-4.3)
wru_3.0.4.tgz(r-4.4-x86_64)wru_3.0.4.tgz(r-4.4-arm64)wru_3.0.4.tgz(r-4.3-x86_64)wru_3.0.4.tgz(r-4.3-arm64)
wru_3.0.4.tar.gz(r-4.5-noble)wru_3.0.4.tar.gz(r-4.4-noble)
wru_3.0.4.tgz(r-4.4-emscripten)wru_3.0.4.tgz(r-4.3-emscripten)
wru.pdf |wru.html✨
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
- state_fips - Dataset with FIPS codes for US states
- surnames2000 - Census Surname List (2000).
- surnames2010 - Census Surname List (2010).
- voters - Example voter file.
Last updated 5 months agofrom:8f4efeb41c. Checks:OK: 1 NOTE: 3 ERROR: 5. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 11 2024 |
R-4.5-win-x86_64 | NOTE | Nov 11 2024 |
R-4.5-linux-x86_64 | NOTE | Nov 11 2024 |
R-4.4-win-x86_64 | ERROR | Nov 11 2024 |
R-4.4-mac-x86_64 | ERROR | Nov 11 2024 |
R-4.4-mac-aarch64 | ERROR | Nov 11 2024 |
R-4.3-win-x86_64 | NOTE | Nov 11 2024 |
R-4.3-mac-x86_64 | ERROR | Nov 11 2024 |
R-4.3-mac-aarch64 | ERROR | Nov 11 2024 |
Exports:as_fips_codeas_state_abbreviationformat_legacy_dataget_census_datapredict_race
Dependencies:askpassbitbit64cachemclassclassIntclicliprcodetoolscpp11crayoncurlDBIdigestdplyre1071fansifastmapfsfurrrfuturegenericsghgitcredsglobalsgluehmshttrhttr2inijsonliteKernSmoothlifecyclelistenvlubridatemagrittrMASSmemoisemimeopensslparallellypiggybackpillarpkgconfigPL94171prettyunitsprogressproxypurrrR6rappdirsRcppRcppArmadilloreadrrlangs2sfstringistringrsystibbletidyrtidyselecttimechangetinytigertzdbunitsutf8vctrsvroomwithrwk
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Legacy data formatting function. | format_legacy_data |
Multilevel Census data download function. | get_census_data |
Race prediction function. | predict_race |
Dataset with FIPS codes for US states | state_fips |
Census Surname List (2000). | surnames2000 |
Census Surname List (2010). | surnames2010 |
Example voter file. | voters |
Preflight for name data | wru_data_preflight |