Description Details Author(s) References Examples
Fit the spatial panel data models: the fixed effect model, between model and the random effect model.
Package: | spanel |
Type: | Package |
Version: | 1.0 |
Date: | 2015-06-01 |
License: | GPL-3 |
In this package, we apply the instrumental variables two stage estimation to fit the fixed effects, random effects and between spatial models.
Taha Zaghdoudi
Taha Zaghdoudi <zedtaha@gmail.com>
Amemiyia T. (1971), The estimation of the variances in a variance–components model, International Economic Review, 12, pp.1–13.
Baltagi B.H. (1981), Simultaneous equations with error components, Journal of econometrics, 17, pp.21–49.
Baltagi B.H. (2001), Econometric Analysis of Panel Data. John Wiley and sons. ltd.
Baltagi B, Egger P, Pfa???ermayr M (2006), A Generalized Spatial Panel Data Model with Random Effects, woking paper, Center For Policy Research, Syracuse University.
Munnell AH (1990). Why has Productivity Growth Declined? Productivity and Public Investment, New England Economic Review, pp. 3-22.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Load data
data(Produc)
data("usaww")
# fit the fixed function
fx<-span(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,usaww,n=48,t=17,model="fe")
# fit the random function
summary(fx)
#fit the between function
be<-span(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,usaww,n=48,t=17,model="be")
summary(be)
# fit the random function
ran<-span(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,usaww,n=48,t=17,model="re")
summary(ran)
|
Formula:log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
Balanced Panel: n: 48 t: 17 N: 816
Rsquared : 0.02005736
Estimates Std.Err T-value P-Value
log(pcap) -0.04007343 0.02667848 -1.5021 0.1335
log(pc) 0.22074355 0.02506409 8.8072 < 2.2e-16 ***
log(emp) 0.67066333 0.03072264 21.8296 < 2.2e-16 ***
unemp -0.00474157 0.00091041 -5.2082 2.420e-07 ***
0.18718963 0.02587428 7.2346 1.083e-12 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Formula:log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
Balanced Panel: n: 48 t: 17 N: 816
Rsquared : 0.9939232
Estimates Std.Err T-value P-Value
(Intercept) 1.6928901 0.7781358 2.1756 0.0298754 *
log(pcap) 0.1723945 0.1616659 1.0664 0.2865771
log(pc) 0.3016717 0.0910694 3.3125 0.0009655 ***
log(emp) 0.5843175 0.1313312 4.4492 9.823e-06 ***
unemp -0.0026183 0.0227603 -0.1150 0.9084439
-0.0093646 0.0534176 -0.1753 0.8608810
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Formula:log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
Balanced Panel: n: 48 t: 17 N: 816
Rsquared : 0.950528
Estimates Std.Err T-value P-Value
(Intercept) 1.92719851 0.17102799 11.2683 < 2.2e-16 ***
log(pcap) -0.00392653 0.02564756 -0.1531 0.8784
log(pc) 0.25139222 0.02381932 10.5541 < 2.2e-16 ***
log(emp) 0.70471904 0.02898067 24.3169 < 2.2e-16 ***
unemp -0.00558438 0.00090403 -6.1772 1.032e-09 ***
0.10301823 0.02025889 5.0851 4.566e-07 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.