Hi,
I would like to run a regression with year month fixed effects. My data consists of year and months but I am unsure how I should include this dummies.
If I want to create a dummy for just one month I would use the "gen dj1=1 if month==1" formula, which is the dummy variable for January. But, how am I suppose to do this for both year and month fixed effects?
Thanks in advance!
Related Posts with Year and Month fixed effects
Using if statements using foreachHi everyone, I'm fairly new to STATA and this one practice problem has been driving me crazy...I wo…
How to create a paired unit identifier?In the help file of did_imputation, I saw that when using triple diff: 22) Triple-diffs: When o…
Example of compositional effect in panel data?The definition of compositional effect is The term “compositional effects” is used here to refer to …
Conditional conversion to string variableHello, I have a large dataset which I receive in 5 excel files. There is a variable, lets say X, thi…
Why trend is important in AMG and CCEMG estimators?Dear Statalist I read many papers estimate the CCEMG and AMG using the command of xtmg they add tre…
Subscribe to:
Post Comments (Atom)
0 Response to Year and Month fixed effects
Post a Comment