-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into fix/update-voters-tract
- Loading branch information
Showing
30 changed files
with
824 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ ChangeLog | |
|
||
^cran-comments\.md$ | ||
^CRAN-SUBMISSION$ | ||
^README\.Rmd$ | ||
^data-raw$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
Package: wru | ||
Title: Who are You? Bayesian Prediction of Racial Category Using Surname, | ||
First Name, Middle Name, and Geolocation | ||
Version: 2.0.0 | ||
Date: 2023-07-12 | ||
Title: Who are You? Bayesian Prediction of Racial Category Using Surname, First Name, Middle Name, and | ||
Geolocation | ||
Authors@R: c( | ||
person("Kabir", "Khanna", email = "[email protected]", role = c("aut")), | ||
person("Brandon", "Bertelsen", email = "[email protected]", role = c("aut","cre")), | ||
person("Santiago", "Olivella", email = "[email protected]", role = c("aut")), | ||
person("Evan", "Rosenman", email = "[email protected]", role = c("aut")), | ||
person("Kosuke", "Imai", email = "[email protected]", role = c("aut")) | ||
person("Kabir", "Khanna", , "[email protected]", role = "aut"), | ||
person("Brandon", "Bertelsen", , "[email protected]", role = c("aut", "cre")), | ||
person("Santiago", "Olivella", , "[email protected]", role = "aut"), | ||
person("Evan", "Rosenman", , "[email protected]", role = "aut"), | ||
person("Kosuke", "Imai", , "[email protected]", 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> 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>. | ||
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>. | ||
License: GPL (>= 3) | ||
URL: https://github.com/kosukeimai/wru | ||
BugReports: https://github.com/kosukeimai/wru/issues | ||
Depends: | ||
|
@@ -28,20 +34,20 @@ Imports: | |
dplyr, | ||
furrr, | ||
future, | ||
piggyback (>= 0.1.4), | ||
PL94171, | ||
purrr, | ||
Rcpp, | ||
piggyback (>= 0.1.4), | ||
PL94171 | ||
Rcpp | ||
Suggests: | ||
testthat (>= 3.0.0), | ||
covr | ||
covr, | ||
testthat (>= 3.0.0) | ||
LinkingTo: | ||
Rcpp, | ||
RcppArmadillo | ||
LazyLoad: yes | ||
Config/testthat/edition: 3 | ||
Encoding: UTF-8 | ||
LazyData: yes | ||
LazyDataCompression: xz | ||
License: GPL (>= 3) | ||
LazyLoad: yes | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.2.3 | ||
Encoding: UTF-8 | ||
Config/testthat/edition: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.onAttach <- | ||
function(libname, pkgname) { | ||
packageStartupMessage("\nPlease cite as: \n") | ||
packageStartupMessage("Khanna K, Bertelsen B, Olivella S, Rosenman E, Imai K (2022). wru: Who are You?") | ||
packageStartupMessage("Bayesian Prediction of Racial Category Using Surname, First Name, Middle Name, and Geolocation.") | ||
packageStartupMessage("URL: https://CRAN.R-project.org/package=wru \n") | ||
.onAttach <- function(libname, pkgname) { | ||
packageStartupMessage( | ||
"\n", | ||
"Please cite as:", "\n\n", | ||
format(citation("wru"), style = "text"), "\n\n", | ||
"Note that wru 2.0.0 uses 2020 census data by default.", "\n", | ||
'Use the argument `year = "2010"`, to replicate analyses produced with earlier package versions.', | ||
"\n" | ||
) | ||
} |
Oops, something went wrong.