The goal of rethnicity is to provide a method to predict ethnicity from names of people.
I created this package hoping to help applied researchers on their studies regarding ethnic bias and discrimination, and potentially eliminate the racial and ethnic disparities. By using this package, you agree to the following:
Again, you should use the package responsibly and please refer to the methodology paper for details.
I recommend using the wonderful package manager pak
to install this
package:
# first install `pak` if not yet installed
# install.packages("pak")
# install the CRAN version
::pkg_install("rethnicity")
pak
# or install the Github development version
::pkg_install("fangzhou-xie/rethnicity") pak
Of course, you can also install the package in the old way: install the released version of rethnicity from CRAN with:
install.packages("rethnicity")
Or the development version from GitHub with:
# install.packages("devtools")
::install_github("fangzhou-xie/rethnicity") devtools
There is a vignette that discusses how to use this package.
The complete description of the methodology is on arXiv and published on SoftwareX and please cite it as:
@article{xie2022,
title = {Rethnicity: {{An R}} Package for Predicting Ethnicity from Names},
shorttitle = {Rethnicity},
author = {Xie, Fangzhou},
year = {2022},
month = jan,
journal = {SoftwareX},
volume = {17},
pages = {100965},
issn = {2352-7110},
doi = {10.1016/j.softx.2021.100965},
}
@article{xie2021,
title = {Rethnicity: Predicting {{Ethnicity}} from {{Names}}},
shorttitle = {Predicting {{Ethnicity}} from {{Names}} with Rethnicity},
author = {Xie, Fangzhou},
year = {2021},
month = sep,
journal = {arXiv:2109.09228 [cs]},
eprint = {2109.09228},
eprinttype = {arxiv},
}
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
This license was chosen to prohibit commercial usage, while still being free and accessible for non-commercial academic uses.