gender_predict: Predict Gender

gender_predictR Documentation

Predict Gender

Description

Predict Gender

Usage

gender_predict(.tab, .use_age = FALSE, .methods = c("ssa", "ipums", "napp"))

Arguments

.tab

Input Table (see details)

.use_age

Should race be inferred from information about a persons birth year?

.methods

Any combination of "ssa", "ipums", "napp"

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 original data frame (.tab in long format) appended with the following columns:

  • method: Used methods (see details for more information)

  • pmale: Probability of the person being male

  • gender: The most likely gender as predicted by the respective method

  • rank: Prediction Rank


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