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
coefplot : groups() option not producing desired resultsHi Stata users, I am using coefplot in Stata 15 to try and replicate the graph below where there are…
Dropping variables based on date availabilityHello, I am struggling with cleaning my data. Array I have panel data regarding banks. I would li…
njc_stuff package updated on SSCThanks as ever to Kit Baum, this package has been updated on SSC. The following explanation is iden…
problem with gsemHi all, I am quite new to Stata and I am trying to run a Bernoulli-logit regression with gsem builde…
SIR models in StataDear all, I have to estimate the equations of a SIR model to project the spread of an infectious di…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed Effects: Variables Indexed by Country, Sector and Time
Post a Comment