I am trying to figure out how to correctly establish interactions between dummy variables. I need to show the differences between gender and whether athlete/nonathlete.
I feel like my code is correct. Somehow, it is omitting both the male variables for collinearity and I cannot figure out why! I must be accidentally creating duplicate somehow? I'm new to STATA so any help is MUCH appreciated
generate fem_ath=1 if female==1 & athlete==1
replace fem_ath=0 if female==1 & athlete==0
generate fem_nonath=1 if female==1 & athlete==0
replace fem_nonath=0 if fem_nonath==.
generate male_ath=1 if female==0 & athlete==1
replace male_ath=0 if male_ath==.
generate male_nonath=1 if female==0 & athlete==0
replace male_nonath=0 if male_nonath==.
reg colgpa hsize hsizesq hsperc sat fem_ath fem_nonath male_ath male_nonath
I feel like my code is correct. Somehow, it is omitting both the male variables for collinearity and I cannot figure out why! I must be accidentally creating duplicate somehow? I'm new to STATA so any help is MUCH appreciated

generate fem_ath=1 if female==1 & athlete==1
replace fem_ath=0 if female==1 & athlete==0
generate fem_nonath=1 if female==1 & athlete==0
replace fem_nonath=0 if fem_nonath==.
generate male_ath=1 if female==0 & athlete==1
replace male_ath=0 if male_ath==.
generate male_nonath=1 if female==0 & athlete==0
replace male_nonath=0 if male_nonath==.
reg colgpa hsize hsizesq hsperc sat fem_ath fem_nonath male_ath male_nonath