race_predict: Predict Race

View source: R/main.R

race_predictR Documentation

Predict Race

Description

Predict Race

Usage

race_predict(...)

Arguments

...

Tables generated by race_prr(), race_wru(), or the race_eth python function

Details

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)

Value

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)


MatthiasUckert/Rrace documentation built on Sept. 8, 2023, 3:26 p.m.