Description Usage Arguments Details Value Author(s) References See Also Examples
Feasible generalized three stages least square estimator (FGS3SLS) of symultaneous systems of spatially interrelated cross sectional equations of the form:
Y = Y B + X C + \bar{Y} L + U
U = \bar{U} R + E
with Y = (y_1,…,y_m), X = (x_1,…,x_m), U = (u_1,…,u_m), \bar{Y} = (\bar{y}_1,…,\bar{y}_m) and \bar{y}_j = W y_j j=1,…,m, E = (e_1,…,e_m), \bar{U} = (\bar{u}_1,…,\bar{u}_m) and \bar{u}_j = W u_j j=1,…,m. B, C, L and R=diag_{j=1}^m (ρ_j) are matrix of parameters
1 2 3 |
formula |
a list of objects of class |
data |
an object of class |
index |
if not NULL (default), a character vector to identify the indexes among the columns of the |
listw |
an object of class |
model |
|
lag |
A logical list of length equal to the number of equations. If TRUE the spatial lag of the variable is included in the equation |
spatial.error |
A logical vector. When TRUE a spatially autocorrelated error term is included in the corresponding equation |
moments |
|
endog |
Additional endogenous variables |
instruments |
Additional instruments |
verbose |
report the output of the optimization results |
method |
one of c("w2sls", "b2sls", "g2sls", "ec2sls") |
control |
a list of controls |
The function can be specified with any number of equations.
The number of equations is determined through the formula
object.
The data can also be specified as a panel data frame. The logical argument
PANEL should then be set to TRUE.
The logical list lags
controls which spatial lags should be included in the equations.
The logical list errors
determines which equations should include an autoregressive term.
The logical list endogenous
determines which equations should include an autoregressive term.
An object of class "splm"
.
coefficients |
FG3SLS coefficients estimate of the model parameters (for all equations) |
vcov |
the variance covariance matrix of the estimated coefficients |
residuals |
FG3SLS residuals |
fitted.values |
the fitted values |
sigma2 |
error variance |
type |
"Seemingly unrelated regressions with spatial error components" |
rho |
a list with the spatial error coefficient and the variance component |
call |
the call used to create the object |
model.data |
the data from teh third step |
expv |
the number of explanatory variables in each equation |
namesx |
the names of the responses in all equation |
NT |
the number of observation |
N |
the number of cross-sections |
N |
the number of time periods |
eq |
the number of equations |
Gianfranco Pirasgpiras@mac.com
Kelejian, H.H. and Prucha, I.R. (2004) Estimation of Simultaneous systems of spatially interrelated cross sectional equations, Journal of Econometrics, 118, pages 27–50.
Kelejian, H.H. and Prucha, I.R. (1999) A Generalized Moments Estimator for the Autoregressive Parameter in a Spatial Model, International Economic Review, 40, pages 509–533.
Kelejian, H.H. and Prucha, I.R. (1998) A Generalized Spatial Two Stage Least Square Procedure for Estimating a Spatial Autoregressive Model with Autoregressive Disturbances, Journal of Real Estate Finance and Economics, 17, pages 99–121.
1 2 3 4 5 6 7 8 9 10 | data(Produc, package = "Ecdat")
data(usaww)
Produc <- Produc[Produc$year<1973, ]
eq1 <- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
eq2 <- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
eq3 <- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
formula<-list(tp1 = eq1, tp2 = eq2, tp3=eq3)
w<-mat2listw(usaww)
se<-spsegm(formula, data=Produc, w=w, panel= TRUE,lags=list(c(TRUE,TRUE,TRUE),c(TRUE,TRUE,TRUE),c(TRUE,TRUE,TRUE)), errors=list(FALSE,TRUE,FALSE),endogenous=list(c(FALSE,TRUE,FALSE),c(TRUE,FALSE,FALSE),c(TRUE,FALSE,FALSE)))
summary(se)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.