spanel-package: Spatial Panel Data Models

Description Details Author(s) References Examples

Description

Fit the spatial panel data models: the fixed effect model, between model and the random effect model.

Details

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.

Author(s)

Taha Zaghdoudi

Taha Zaghdoudi <zedtaha@gmail.com>

References

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.

Examples

 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)

Example output

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

spanel documentation built on May 1, 2019, 9:14 p.m.