Hi, I am looking at the impact of trust (trust in government, interpersonal trust) on economic outcomes (GDP per capita) during COVID-19. I look at 37 different countries (OECD) over the period 2017Q1-2021Q3. I am comparing what I define as "high-trust countries" and "low-trust" countries to see if there are any significant differences between the groups. To do this, I estimate a difference-in-difference panel data regression with fixed effects. What is somewhat special in my case is that I do not have a control group per se as the treatment is COVID-19 and both groups (high-trust & low-trust) is hit by the "treatment".
I run:
where TRUST_high is a dummy equal to 1 if the country is a high-trust country and zero otherwise. Post is equal to 1 if the period is within COVID-19 period (from 2020Q1 and forward) and zero otherwise.
Then I get the following output:
As you can see, the TRUST_high variable is omitted because of collinearity. I just wonder if this is a major problem or if the model is estimated correctly as is? Or is there some other way I should define the xtreg code in this case?
This might be a bit of topic from my original question, but I also wonder if using fixed effects is the most appropriate here or if I should use random effects instead? I computed the Hausman test and it clearly stated that I should use random effects. However, potential relevant control variables I have are (more or less) time invariant, so including them in a RE model would be essentially the same as estimating the FE model without the controls, right?
Thank you.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(date TRUST_high countryid) double GDP_percapita float post 228 1 1 53649.2 0 229 1 1 53855.6 0 230 1 1 54274.4 0 231 1 1 55088.1 0 232 1 1 56136.4 0 233 1 1 56950.7 0 234 1 1 57103.1 0 235 1 1 57714.9 0 236 1 1 57951 0 237 1 1 57788.3 0 238 1 1 58109 0 239 1 1 58406.4 0 240 1 1 57611.9 1 241 1 1 51087.8 1 242 1 1 57265.1 1 243 1 1 56436 1 244 1 1 56654.7 1 245 1 1 59708.1 1 246 1 1 62434.1 1 228 1 2 47831.2 0 229 1 2 48261.6 0 230 1 2 48489.5 0 231 1 2 48947.6 0 232 1 2 49694.6 0 233 1 2 50331.3 0 234 1 2 50331.4 0 235 1 2 49947.8 0 236 1 2 49373.4 0 237 1 2 49532.3 0 238 1 2 49305.1 0 239 1 2 49301.3 0 240 1 2 48290.8 1 241 1 2 42721 1 242 1 2 47049.5 1 243 1 2 48394.3 1 244 1 2 49554.3 1 245 1 2 49799.2 1 246 1 2 51074.4 1 228 1 3 68623.6 0 229 1 3 68642.8 0 230 1 3 69006.8 0 231 1 3 70062.7 0 232 1 3 71151.2 0 233 1 3 72151.5 0 234 1 3 71736.2 0 235 1 3 71675 0 236 1 3 71408.4 0 237 1 3 71728.1 0 238 1 3 72184.6 0 239 1 3 72962.1 0 240 1 3 72526.9 1 241 1 3 67972.3 1 242 1 3 72966.8 1 243 1 3 73158.3 1 244 1 3 73638.9 1 245 1 3 75891.5 1 246 1 3 78268 1 228 0 4 23711.3 0 229 0 4 24299.5 0 230 0 4 24934.1 0 231 0 4 25196.3 0 232 0 4 25546.4 0 233 0 4 25915.2 0 234 0 4 25691.5 0 235 0 4 25688.7 0 236 0 4 25256.4 0 237 0 4 25460 0 238 0 4 25480.2 0 239 0 4 24622.5 0 240 0 4 25409.7 1 241 0 4 22926.9 1 242 0 4 24290.8 1 243 0 4 25892.1 1 244 0 4 27256 1 245 0 4 28300.7 1 228 0 5 14262.3 0 229 0 5 14384.9 0 230 0 5 14511 0 231 0 5 14757.9 0 232 0 5 15071.6 0 233 0 5 15354.5 0 234 0 5 15579.3 0 235 0 5 15749 0 236 0 5 15826.7 0 237 0 5 16043.4 0 238 0 5 16188.6 0 239 0 5 16457.4 0 240 0 5 16249.2 1 241 0 5 13648.9 1 242 0 5 15131.6 1 243 0 5 16156.5 1 244 0 5 16765.2 1 245 0 5 16360.5 1 246 0 5 17509.3 1 228 1 6 37633.5 0 229 1 6 38801.2 0 230 1 6 39245 0 231 1 6 39889.4 0 232 1 6 40439.1 0 233 1 6 41109.2 0 end format %tq date
I run:
Code:
xtreg GDP_percapita TRUST_high##post i.date, fe
Then I get the following output:
Code:
note: 1.TRUST_high omitted because of collinearity.
note: 246.date omitted because of collinearity.
Fixed-effects (within) regression Number of obs = 700
Group variable: countryid Number of groups = 37
R-squared: Obs per group:
Within = 0.5585 min = 18
Between = 0.3657 avg = 18.9
Overall = 0.0310 max = 19
F(19,644) = 42.88
corr(u_i, Xb) = 0.0633 Prob > F = 0.0000
---------------------------------------------------------------------------------
GDP_percapita | Coefficient Std. err. t P>|t| [95% conf. interval]
----------------+----------------------------------------------------------------
1.TRUST_high | 0 (omitted)
1.post | 7996.809 507.212 15.77 0.000 7000.82 8992.798
|
TRUST_high#post |
1 1 | 1168.738 318.2788 3.67 0.000 543.7489 1793.728
|
date |
229 | 527.4892 471.2242 1.12 0.263 -397.8322 1452.811
230 | 994.2324 471.2242 2.11 0.035 68.91102 1919.554
231 | 1710.951 471.2242 3.63 0.000 785.6299 2636.273
232 | 2250.219 471.2242 4.78 0.000 1324.898 3175.54
233 | 2884.216 471.2242 6.12 0.000 1958.895 3809.538
234 | 2990.186 471.2242 6.35 0.000 2064.865 3915.508
235 | 3211.1 471.2242 6.81 0.000 2285.779 4136.421
236 | 3318.389 471.2242 7.04 0.000 2393.068 4243.711
237 | 3668.522 471.2242 7.79 0.000 2743.2 4593.843
238 | 3899.641 471.2242 8.28 0.000 2974.319 4824.962
239 | 4377.276 471.2242 9.29 0.000 3451.954 5302.597
240 | -4580.13 482.08 -9.50 0.000 -5526.769 -3633.492
241 | -8843.763 482.08 -18.35 0.000 -9790.401 -7897.124
242 | -4701.144 482.08 -9.75 0.000 -5647.782 -3754.505
243 | -4134.444 482.08 -8.58 0.000 -5081.082 -3187.805
244 | -3119.941 482.08 -6.47 0.000 -4066.58 -2173.303
245 | -1448.576 482.08 -3.00 0.003 -2395.215 -501.9378
246 | 0 (omitted)
|
_cons | 43646.96 333.2077 130.99 0.000 42992.65 44301.26
----------------+----------------------------------------------------------------
sigma_u | 19161.688
sigma_e | 2026.8117
rho | .98893561 (fraction of variance due to u_i)
---------------------------------------------------------------------------------
F test that all u_i=0: F(36, 644) = 1463.68 Prob > F = 0.0000
.
This might be a bit of topic from my original question, but I also wonder if using fixed effects is the most appropriate here or if I should use random effects instead? I computed the Hausman test and it clearly stated that I should use random effects. However, potential relevant control variables I have are (more or less) time invariant, so including them in a RE model would be essentially the same as estimating the FE model without the controls, right?
Thank you.

Comment