I am having a confusing problem -- when I ran my code last week, everything was normal. Now, not so much.
I have a crossectional data set (DHS for Colombia), and am running a diff-in-diff specification. I have three years of data (2005, 2010, 2015), and tabbing my "year" variable confirms this. My "post" variable is equal to 1 if year == 2015. I have a "policy" variable which is equal to one for certain geographic departments in the treated group, and my difference in difference variable is did = post*policy.
When I run a regression, I am including department and year fixed effects. As I also have to cluster at the department level, the power for this group goes away, which should leave three degrees of freedom, one for each year. Now there are only two, and I'm not sure why. This first appeared when I re-ran all of my code from the start of my data cleaning file through to the regressions, but I'm not sure why this would change. When I ran it last week, there were three df, which I noticed when I plotted an event study (all three years showed up, now only two show up).
Why would this happen? Please let me know if more explanation or code is needed. I am using reghdfe; the following is the basic format: reghdfe y did $controls [pweight = wtvar], absorb(dept year) cluster(dept)
I actually have seven different outcomes, so I am representing them just by "y". Thank you all!
Related Posts with Category omitted from fixed effect when running regression
Fixed effect ordered logitHi Stata users, I have an ordered dependent variable and I am trying to implement fixed effect orde…
Problem with the option xline with the user-written command coefplotDear all, I am currently working with Stata 16.1 on an event study analysis. I am having troubles w…
ODBC, *Stata 16 and Big SurHello, After updating to MacOS BigSur 11.1.3, i am now facing the following problem with Stata 16 a…
Frequency table for logistic regressionI'm running a multi-level miseducating effect logistic regression. I know that STATA will remove any…
Merging/Appending excel datasetHi everyone! So I need to import a new variable 'x' from an excel dataset (ED) within a Stata datase…
Subscribe to:
Post Comments (Atom)
0 Response to Category omitted from fixed effect when running regression
Post a Comment