race_predict | R Documentation |
Predict Race
race_predict(...)
... |
Tables generated by race_prr(), race_wru(), or the race_eth python function |
The column 'method' encodes several variables at one and is encoded in the following way:
package-first name used-last name used-geo loaction used-age used-gender used-geo location
For example: The method WRU-0-1-1-1-1-C means that the package WRU is used, prediction is not based on the first name,
predictio is based on the last name, geo location is used, age is used, gender is used, and the geo location is a COunty (C)
The dataframes in ... are appended and the following columns are added:
hp (Highest Probability): Shows the highest probability of the race prediction for each row
gd (Guess Difference): Shows the difference between the highest and second highest probability
rank_hp: Prediction rank based on the highest probability (hp)
rank_gd: Prediction rank based on the guess difference (gd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.