gender_predict | R Documentation |
Predict Gender
gender_predict(.tab, .use_age = FALSE, .methods = c("ssa", "ipums", "napp"))
.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" |
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 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.