Collapse common ethnicity values to the EPHT's allowable values: "H", "NH", "U"
Details
If there are any other values, they will be converted to "U". NULL
or
NA
values can be converted to "U" or left as NA_character_
Ethnicity Values
Character strings are converted to lowercase and stripped of any non-word characters. This is to ensure that the values are standardized before comparison.
Common values that get converted are:
hispanic, hisp, h -> "H"
nonhispanic, nonhisp, nh -> "NH"
unknown, unk, u -> "U"
See also
Other helpers:
collapse_race()
,
make_months_worse()
,
parse_health_outcome_id()