I am trying to run a regression for fixed effects specifications. The dependent variable is Volatility, which is indexed by country, sector and time. The explanatory variables are Openness and GDP. Openness is also indexed by country, sector and time, while GDP is only indexed by country and time. I attempted the following regression:
xtreg Volatility Openness GDP, fe
My preceding codes are as follows:
egen id = group(Country Sector)
xtset id Time
format Time %ty
The problem with this is that I am not sure how to index the variables appropriately in the regression. The result is that all coefficients are zero, except the constant. How should I index the variables? Thank you very much in advance!
Related Posts with Fixed Effects: Variables Indexed by Country, Sector and Time
How to do tabstat varlist with all variablesDear Stata users, I have data with long variable names. When I want to use "summarize", it abbrevia…
Line graphsHi STATALIST, Using line cp50_CTDI cp50_CTDI_withIR cp50_CTDI_withoutIR p50_CTDI I produced …
How to display "Fixed effects: heterogeneity across years (stripplot)?"Good morning to the community Stata! I would like to show a graph like the picture showing geometri…
Making a square boxHi all, I have a problem with the image attached. In particular, I do not understand why the scale …
Error: Option Dynamic Not Allowed in the Command PredictHi, I am doing ex-ante out of sample forecasting for rail freight. Based on the results of the ADF …
Subscribe to:
Post Comments (Atom)
0 Response to Fixed Effects: Variables Indexed by Country, Sector and Time
Post a Comment