add_race: Add Graduate Race

Description Usage Arguments Format Value

View source: R/add_race.R

Description

This function takes as input a data frame which includes the last.name of each graduate. It returns that data frame along with a new column: race.

Usage

1

Arguments

x

data frame with last.name column

Format

p_whi

Prosterior probability that the individual's race is White, as determined by the wru package

p_bla

Prosterior probability that the individual's race is Black, as determined by the wru package

p_asi

Prosterior probability that the individual's race is Asian, as determined by the wru package

p_his

Prosterior probability that the individual's race is Hispanic, as determined by the wru package

p_oth

Prosterior probability that the individual's race is none of the above, as determined by the wru package

race

Graduate's race as the racial category with the highest prosterior probability.

Value

the input data frame along with new column(s).


karantibrewal/williams documentation built on May 3, 2019, 9:40 p.m.