I am building a regression model and have run into an issue. I'm trying to build a model that predicts the weight of a baby when it is born. One of the explanatory variables is the race of the parents.
In some cases, the baby's parents will have one race and in some, it will have multiple. There is no distinction between the mother or father's race, so essentially I have Parent 1 and Parent 2 as variables. However, the order does not matter, meaning Parent 1 and Parent 2 could have their values swapped with no change to the predictor variable.
I know I have to encode the values categorically but I'm not sure how to handle the Parent 1 and Parent 2 variables such that order doesn't matter. I'm not sure if my issue is coming off as clear so please ask follow-up questions if you're not sure what I'm talking about.