Hello,
I'm working with a strongly balanced panel data (210 countries) and timeframe (1985-2020)
I've used this regression command (country and time fixed effects)
I'm aware that this estat hettest only works with reg command, but I've looked what's working in my case I did found xttest2 or xttest3 but both read 'command unrecognised'
My supervisor told me that if heteroscedasticity is present, I need to use robust standard errors although he mentioned that these are usually biased estimates. He also mentioned that I need to focus more on testing whether there's autocorrelation or not.
Any assistance is appreciated.
Thanks
Edit: I just found that I needed to install xttest3 package, I managed to get a heterescedasciticy test (Modified Wald test for groupwise heteroskedasticity).
My following question why time variable have been omitted in my regression.
Using this command
I also managed to make the xtserial work but do I need to put all variables I'm using in myregression after xtserial y x x1 etc. or what exactly.
If I found having both heteroscedasticty and autocorrelation
Does this command fixes both?
I'm working with a strongly balanced panel data (210 countries) and timeframe (1985-2020)
I've used this regression command (country and time fixed effects)
Code:
xtreg patrat rndd rinterest exports bureaucracy i.year, fe
My supervisor told me that if heteroscedasticity is present, I need to use robust standard errors although he mentioned that these are usually biased estimates. He also mentioned that I need to focus more on testing whether there's autocorrelation or not.
Any assistance is appreciated.
Thanks
Edit: I just found that I needed to install xttest3 package, I managed to get a heterescedasciticy test (Modified Wald test for groupwise heteroskedasticity).
My following question why time variable have been omitted in my regression.
Using this command
Code:
xtreg patrat rndd rinterest exports bureaucracy i.year, fe
Code:
Fixed-effects (within) regression Number of obs = 394 Group variable: year Number of groups = 22 R-squared: Obs per group: Within = 0.5289 min = 13 Between = 0.3641 avg = 17.9 Overall = 0.5033 max = 22 F(4, 368) = 103.30 corr(u_i, Xb) = -0.1273 Prob > F = 0.0000 ------------------------------------------------------------------------------ patrat | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- lagrnd | 5552.63 768.8641 7.22 0.000 4040.711 7064.548 rinterest | 92.78694 165.1105 0.56 0.574 -231.8915 417.4654 exports | 2.13e-08 1.47e-09 14.52 0.000 1.84e-08 2.42e-08 bureaucracy | -3020.346 947.269 -3.19 0.002 -4883.085 -1157.607 | year | 1998 | 0 (omitted) 2000 | 0 (omitted) 2002 | 0 (omitted) 2003 | 0 (omitted) 2004 | 0 (omitted) 2005 | 0 (omitted) 2006 | 0 (omitted) 2007 | 0 (omitted) 2008 | 0 (omitted) 2009 | 0 (omitted) 2010 | 0 (omitted) 2011 | 0 (omitted) 2012 | 0 (omitted) 2013 | 0 (omitted) 2014 | 0 (omitted) 2015 | 0 (omitted) 2016 | 0 (omitted) 2017 | 0 (omitted) 2018 | 0 (omitted) 2019 | 0 (omitted) 2020 | 0 (omitted) | _cons | -6808.972 1251.709 -5.44 0.000 -9270.372 -4347.572 -------------+---------------------------------------------------------------- sigma_u | 3001.7472 sigma_e | 11523.812 rho | .06353971 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(21, 368) = 1.06 Prob > F = 0.3953
I also managed to make the xtserial work but do I need to put all variables I'm using in myregression after xtserial y x x1 etc. or what exactly.
If I found having both heteroscedasticty and autocorrelation
Does this command fixes both?
Code:
xtreg patrat lagrnd rinterest exports bureaucracy i.year, fe vce (robust)
Comment