Greetings,
I have panel data with 7 or 8 years (depending on which variables are included) on the market share of cooperatives for 5 classes of agricultural commodities. Theory holds that this should be explained by the share of farms that are not family farms and the combined effects (i.e., interaction) of uncertainty and asset specificity. For asset specificity, I have a time invariant measure.
I've been using xtreg but recently read that xtregar may be more appropriate for T>N (but is my T enough greater for it to matter?) ...
Using xtreg, if I include only the interaction term but not its two underlying variables, then the Hausman test should be comparing FE and RE for otherwise identically specified models, in which case its insignificant p-values favor RE (also Breusch-Pagan Lagrangian multiplier test -xttest0- returns significant p-values favoring RE over pooled OLS).
However, if I include the two interacted terms individually, along with their interaction, of course the time invariant measure of asset specificity drops out of fixed effect models, so I wondered if the Hausman test then fairly compares apples to apples or should I just go with RE, given the time invariant nature of a focal explanatory variable?
(If needed, I can share code and results for the above but trying not to overwhelm.) No matter what model I consider, -testparm i.year- indicates that I do not need to include time dummies.
I also considered the constant random effects model. I had to multiply my measure of Physical asset specificity by 100 and round up to be an integer (I named Pround) for this model while retaining variability. The significantly negative coefficients for two of the middle values of Pround seem to reflect that it's lowest value is a bit higher than one would expect (graphically the relationship looks nonlinear, so maybe log it).
Also, I imagine the model doesn't know that UxPround is composed of the two underlying variables (I know that is problematic for inferring marginal effects in binary logit/probit models, but perhaps not an issue here).
. xtreg coop_share_100 UxPround U_100 i.Pround nonfamily_share_100 , cre i(id)
note: UxPround omitted from xt_means because of collinearity.
note: U_100 omitted from xt_means because of collinearity.
note: 263b.Pround omitted from xt_means because of collinearity.
note: 370.Pround omitted from xt_means because of collinearity.
note: 413.Pround omitted from xt_means because of collinearity.
note: 452.Pround omitted from xt_means because of collinearity.
note: 515.Pround omitted from xt_means because of collinearity.
note: nonfamily_share_100 omitted from xt_means because of collinearity.
Correlated random-effects regression Number of obs = 40
Group variable: id Number of groups = 5
R-squared: Obs per group:
Within = 0.2283 min = 8
Between = 1.0000 avg = 8.0
Overall = 0.9729 max = 8
Wald chi2(7) = 1149.56
corr(xit_vars*b, xt_means*γ) = -0.5337 Prob > chi2 = 0.0000
-------------------------------------------------------------------------------------
coop_share_100 | Coefficient Std. err. z P>|z| [95% conf. interval]
--------------------+----------------------------------------------------------------
xit_vars |
UxPround | -.0002322 .0023542 -0.10 0.921 -.0048464 .004382
U_100 | .5960452 .8970022 0.66 0.506 -1.162047 2.354137
|
Pround |
370 | 1.549425 4.532224 0.34 0.732 -7.33357 10.43242
413 | -25.38673 5.493122 -4.62 0.000 -36.15305 -14.62041
452 | -26.24007 8.810041 -2.98 0.003 -43.50743 -8.972702
515 | 49.32627 6.788457 7.27 0.000 36.02114 62.6314
|
nonfamily_share_100 | .0076023 .23421 0.03 0.974 -.4514409 .4666454
_cons | 31.50043 5.578254 5.65 0.000 20.56725 42.4336
--------------------+----------------------------------------------------------------
xt_means |
UxPround | 0 (omitted)
U_100 | 0 (omitted)
|
Pround |
370 | 0 (omitted)
413 | 0 (omitted)
452 | 0 (omitted)
515 | 0 (omitted)
|
nonfamily_share_100 | 0 (omitted)
--------------------+----------------------------------------------------------------
sigma_u | 0
sigma_e | 4.7544057
rho | 0 (fraction of variance due to u_i)
-------------------------------------------------------------------------------------
Mundlak test (xt_means = 0): chi2(0) = . Prob > chi2 = .
In all of this (except apparently xtregar), there is the question of whether to use vce(cluster id) for robust standard errors. Is there an appropriate test, particularly after RE or am I left to save and plot residuals (and how to organize or what am I looking for in such a graph, given the observations vary over N and T)?
Thanks in advance (seems like there's a lot of questions here)!
Jason
I have panel data with 7 or 8 years (depending on which variables are included) on the market share of cooperatives for 5 classes of agricultural commodities. Theory holds that this should be explained by the share of farms that are not family farms and the combined effects (i.e., interaction) of uncertainty and asset specificity. For asset specificity, I have a time invariant measure.
I've been using xtreg but recently read that xtregar may be more appropriate for T>N (but is my T enough greater for it to matter?) ...
Using xtreg, if I include only the interaction term but not its two underlying variables, then the Hausman test should be comparing FE and RE for otherwise identically specified models, in which case its insignificant p-values favor RE (also Breusch-Pagan Lagrangian multiplier test -xttest0- returns significant p-values favoring RE over pooled OLS).
However, if I include the two interacted terms individually, along with their interaction, of course the time invariant measure of asset specificity drops out of fixed effect models, so I wondered if the Hausman test then fairly compares apples to apples or should I just go with RE, given the time invariant nature of a focal explanatory variable?
(If needed, I can share code and results for the above but trying not to overwhelm.) No matter what model I consider, -testparm i.year- indicates that I do not need to include time dummies.
I also considered the constant random effects model. I had to multiply my measure of Physical asset specificity by 100 and round up to be an integer (I named Pround) for this model while retaining variability. The significantly negative coefficients for two of the middle values of Pround seem to reflect that it's lowest value is a bit higher than one would expect (graphically the relationship looks nonlinear, so maybe log it).
Also, I imagine the model doesn't know that UxPround is composed of the two underlying variables (I know that is problematic for inferring marginal effects in binary logit/probit models, but perhaps not an issue here).
. xtreg coop_share_100 UxPround U_100 i.Pround nonfamily_share_100 , cre i(id)
note: UxPround omitted from xt_means because of collinearity.
note: U_100 omitted from xt_means because of collinearity.
note: 263b.Pround omitted from xt_means because of collinearity.
note: 370.Pround omitted from xt_means because of collinearity.
note: 413.Pround omitted from xt_means because of collinearity.
note: 452.Pround omitted from xt_means because of collinearity.
note: 515.Pround omitted from xt_means because of collinearity.
note: nonfamily_share_100 omitted from xt_means because of collinearity.
Correlated random-effects regression Number of obs = 40
Group variable: id Number of groups = 5
R-squared: Obs per group:
Within = 0.2283 min = 8
Between = 1.0000 avg = 8.0
Overall = 0.9729 max = 8
Wald chi2(7) = 1149.56
corr(xit_vars*b, xt_means*γ) = -0.5337 Prob > chi2 = 0.0000
-------------------------------------------------------------------------------------
coop_share_100 | Coefficient Std. err. z P>|z| [95% conf. interval]
--------------------+----------------------------------------------------------------
xit_vars |
UxPround | -.0002322 .0023542 -0.10 0.921 -.0048464 .004382
U_100 | .5960452 .8970022 0.66 0.506 -1.162047 2.354137
|
Pround |
370 | 1.549425 4.532224 0.34 0.732 -7.33357 10.43242
413 | -25.38673 5.493122 -4.62 0.000 -36.15305 -14.62041
452 | -26.24007 8.810041 -2.98 0.003 -43.50743 -8.972702
515 | 49.32627 6.788457 7.27 0.000 36.02114 62.6314
|
nonfamily_share_100 | .0076023 .23421 0.03 0.974 -.4514409 .4666454
_cons | 31.50043 5.578254 5.65 0.000 20.56725 42.4336
--------------------+----------------------------------------------------------------
xt_means |
UxPround | 0 (omitted)
U_100 | 0 (omitted)
|
Pround |
370 | 0 (omitted)
413 | 0 (omitted)
452 | 0 (omitted)
515 | 0 (omitted)
|
nonfamily_share_100 | 0 (omitted)
--------------------+----------------------------------------------------------------
sigma_u | 0
sigma_e | 4.7544057
rho | 0 (fraction of variance due to u_i)
-------------------------------------------------------------------------------------
Mundlak test (xt_means = 0): chi2(0) = . Prob > chi2 = .
In all of this (except apparently xtregar), there is the question of whether to use vce(cluster id) for robust standard errors. Is there an appropriate test, particularly after RE or am I left to save and plot residuals (and how to organize or what am I looking for in such a graph, given the observations vary over N and T)?
Thanks in advance (seems like there's a lot of questions here)!
Jason

Comment