# Racwht variable in 2022

**URL:** <https://forum.ipums.org/t/racwht-variable-in-2022/5844>\
**Category:** USA\
**Created:** [April 26, 2024, 5:45pm UTC](https://forum.ipums.org/t/racwht-variable-in-2022/5844 "2024-04-26T17:45:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Hart](https://avatars.discourse-cdn.com/v4/letter/w/ba8739/32.png) [@William\_Hart](https://forum.ipums.org/u/William_Hart)\
**Post date:** [April 26, 2024, 5:45pm UTC](https://forum.ipums.org/t/racwht-variable-in-2022/5844/1 "2024-04-26T17:45:10Z")

</div>

I am doing a regression that includes the race variable. It is an indicator if the individual is white or not. The issue is when I find the summary statistics the code for it seems to be switched as it does not match that of the source code. Is there anything I can do to fix this?

---

<div class="post-metadata">

**Author:** ![Ivan\_Strahof](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.ipums.org/ivan_strahof/32/626_2.png) [@Ivan\_Strahof](https://forum.ipums.org/u/Ivan_Strahof)\
**Post date:** [April 29, 2024, 9:01pm UTC](https://forum.ipums.org/t/racwht-variable-in-2022/5844/2 "2024-04-29T21:01:56Z")

</div>

You are correct that the coding for [RACWHT](https://usa.ipums.org/usa-action/variables/RACWHT#codes_section) and its 2022 source variable [US2022A\_RACWHT](https://usa.ipums.org/usa-action/variables/US2022A_1120#description_section) differ. Respondents who are _White alone or in combination_ are assigned a value of 1 in the source variable (and 0 otherwise). RACWHT harmonizes the source variable by assigning respondents who are _White alone or in combination_ a value of 2 with the label of “Yes” (and otherwise a value of 1 with a label of “No”). You can see this in the _Codes_ tab for each variable.

This is common across many other harmonized binary variables from IPUMS USA. Harmonized variables are available for users who want data that is comparable across ACS and decennial census samples, while source variables are available for those who want to view the original data and apply their own coding structure. If you’d like to reallocate RACWHT so that it follows this source variable coding pattern, you can replace RACWHT values of 1 (“No”) with 0 and values of 2 ("Yes) with 1.
