Hi everyone,
I am trying to analyse how the variable "score" varies over time. I have used the following regression:
xtset country_num year
xtreg score second_period third_period, fe vce(robust)
where second_period and third_period are dummy variables capturing two different periods in my time span.
If I'm not mistaken, specifying the option vce(robust) means the model employs Arellano’s estimator, which corrects for both heteroskedasticity and within-group serial correlation. I also conducted a test for heteroskedasticity through the xttest3 command and rejected homoskedasticity.
I would now like to test if the dummy for the second period is statistically different from the dummy for the third period. I think I should use the following code: test second_period = third_period. However, to perform a t-test I need homoskedasticity.
How can I test if the two dummies are different in the presence of heteroskedasticity and serial correlation?
Thanks in advance!
Related Posts with t-tests under heteroskedasticity
Two way clustering at Sector and Year level with two fixed effects at Firm and YearHi all, I have a panel dataset for 477 firms in one Country for 2007 to 2017. The following is the …
Loop, preserve, save, merge, restoreDear Stata Users I need to change the data layout for 1164 daily files. The names of the files corr…
putdocxfreqtable updated: decimals percentages, value labels not truncatedThe package putdocxfreqtable has been updated after user input. 1. The number of decimals in percen…
Choosing the highest value of a variable in each category corresponding to another variableHello all, I have Var1, which is postal codes, and Var2, dissemination area codes, for which there a…
Difference-in-Difference - collinearityDear Statalisters, I am relatively new to Stata, so please bear with me. Also, I am aware that thi…
Subscribe to:
Post Comments (Atom)
0 Response to t-tests under heteroskedasticity
Post a Comment