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
icd9, invalid codesHi all, I am working with HCUP NIS files for year 2014. I run the following code: . icd9 check …
Extracting subset date from a timestamp date variableDear Colleagues Please help: I am trying to extract the first 8 characters (NEWdate) from a date fo…
bsqreg with fixed effectHi everyone, Is there an alternative to xtqreg with Bootstrapped errors? When I use bsqreg, I can n…
infix usingHi, I am working with HCUP NIS data files. I get "using required". I don't know why! /**********…
Calculate Difference between Last and First Observation in Time Series DataHello Statalist members, I want to calculate the difference between the last and first observations…
Subscribe to:
Post Comments (Atom)
0 Response to Year and Month fixed effects
Post a Comment