I need to perform a regression and add interaction effect between at least a dozen variables.
I have to regress earnings on ethnicity, family status, gender, level of education and month dummies. All of these variables are categorical. Ethnicity is not a single variable but multiple 0/1 variables which I combined in a global for a previous regression, same for family status. I need to interact all of these variables together in a single regression.
This seems incredibly tedious to do one-by-one and I run the risk of forgetting one. Is there a convenient way to do it?
I have to regress earnings on ethnicity, family status, gender, level of education and month dummies. All of these variables are categorical. Ethnicity is not a single variable but multiple 0/1 variables which I combined in a global for a previous regression, same for family status. I need to interact all of these variables together in a single regression.
This seems incredibly tedious to do one-by-one and I run the risk of forgetting one. Is there a convenient way to do it?
Comment