Hello,
I'm running a fixed effect model (after proven by Hausman Test) and I'm not sure if the code is right. I'm using "xi: reg" and ",rob" and I saw in a forum here that "xtreg" and ",fe" should give me the same coefficients but it's not happening.
These are the codes:
xi: reg reconsumption lngdppctogether gdpgrowth govfinalconsumpexpendgdp gdpperunitofenergy trade energyimports energyuse oilprice lnpoptotal popdensity urbanpop accesstoelectricity lnrailways lnairtransport i.country, rob
xtreg reconsumption lngdppctogether gdpgrowth govfinalconsumpexpendgdp gdpperunitofenergy trade energyimports energyuse oilprice lnpoptotal popdensity urbanpop accesstoelectricity lnrailways lnairtransport i.country, fe
I'm sorry if it is a silly question. I'm new at Stata.
Thanks!
Related Posts with Panel Data Techniques
How to use categorical variable in dynamic panel regression?Hello, I am using a country variable, called "targetcountry" in my dynamic panel regression. This v…
How to define date from 2000 in StataDear all, I need to calculate age using date of birth (dob) and survey submission date (end_date). …
How to calculate OLS R-square from FE model estimationHi all, The FE model estimates R-squares corresponding to: within, between and overall equations. H…
How to flag observations that have a certain charateristic in one round but do not have that characteristic in any of the subsequent rounds?Hi everyone, Please consider the following data Code: * Example generated by -dataex-. To install: …
Esttab with longtable optionI am exporting a regression table to LaTeX using the community contributed esttab command with longt…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data Techniques
Post a Comment