Hi Statalist,
I am using IPUMS CPS dataset from 2012q1-2023q2. I have defined an industry variable which is a group of 12 different dummy variables. The primary goal is to look at the technology sector, so tech = 1 if industry == technology and tech = 0 if industry != technology. I am using the following line of code:
I intend to chart out employment trends in the technology industry by race (Race: 1 White, 2 Black, 3 Hispanic, 4 Mixed/Other) by quarters for my timeframe. When I run the above code, Stata includes the 2012q1#1.tech instead of dropping it. While it does drop the overall quarter effects for 2012q1, qtime == 2012. I have checked to see if it drops another i.qtime#tech dummy but it does not. For the i.industry dummies, Stata drops the first one by default and also drops the technology dummy. But when I run:
Stata does drop 2012q1#1.tech and also includes tech in the explanatory variables due to the double ##. Again drops the first industry by default and drops technology from the industry fixed effects.
I am confused why the first line of regression is not working as I would expect. Mainly I want to know why is Stata not dropping 2012q1#1.tech. My dataset has over 5M observations over this 10.5 years.
Edit 1: Employed is a dummy variable that indicates whether individual i residing in state s is employed at time t.
I am using IPUMS CPS dataset from 2012q1-2023q2. I have defined an industry variable which is a group of 12 different dummy variables. The primary goal is to look at the technology sector, so tech = 1 if industry == technology and tech = 0 if industry != technology. I am using the following line of code:
Code:
reghdfe employed i.qtime i.qtime#tech i.educ_dum i.marst_dum age ageSQ female nchild i.industry [aweight = wtfinl] if Race == 1, absorb(statecensus) cluster(time)
Code:
reghdfe employed i.qtime##tech i.educ_dum i.Race i.marst_dum age ageSQ female nchild i.industry [aweight = wtfinl] if Race == 1, absorb(statecensus) cluster(time)
I am confused why the first line of regression is not working as I would expect. Mainly I want to know why is Stata not dropping 2012q1#1.tech. My dataset has over 5M observations over this 10.5 years.
Edit 1: Employed is a dummy variable that indicates whether individual i residing in state s is employed at time t.
Comment