Dear all,
I'm running a panel data regression, for 12 countries and 13 firms over 10 years. I have 3013 observations. I created the panel typing: egen(Country_Sector) and then xtset Country_Sector Year. I run a country_sector fe regression with time fixed effects. I want to add sector-year FE, but how do I do this? Now my regression looks like:
xtreg dependent independent controlvar i.year,fe cluster(country)
Is this then the correct way to add sector_year fe?
xtreg dependent independent controlvar i.Sector_year,fe cluster(country)
Kind regards,
Joris
Related Posts with Country-Sector, Country-Year fe
Making box plots more visibleHello I'm a stata newbie with several questions which I will be posting subsequently in this forum …
master dofile won't run through, despite the dofiles referred to do (if run manually)Hi guys. I wonder if somebody has experienced the following: A master dofile referring to several d…
lpoly estimates for panel dataHello, I want to use the lpoly command to smoothen the outcome variable in a panel. The question i…
Code: Add Variable with Ideal lower and higher numerical values in Panel datasetHello, Could any one of your please help me with coding to add a new variable to the existing datas…
Support of using Epi Week for Time Series AnalysisI converted a date variable into Epi Week / Morbidity that will used in Time Series analysis using e…
Subscribe to:
Post Comments (Atom)
0 Response to Country-Sector, Country-Year fe
Post a Comment