systemfitAR | R Documentation |
Fits a set of linear structural equations using Ordinary Least Squares (OLS), Weighted Least Squares (WLS), Seemingly Unrelated Regression (SUR), with the option of autocorrelation correlation.
systemfitAR(formula, method = "OLS", inst = NULL, data = list(),
restrict.matrix = NULL, restrict.rhs = NULL, restrict.regMat = NULL,
pooled = FALSE, control = systemfit.control( ... ),
AR1 = FALSE, rho.sel = c("all", "mean"), model = c("static", "dynamic"), ...)
formula |
an object of class |
method |
the estimation method, one of "OLS", "WLS", "SUR";
iterated estimation methods can be specified by setting control parameter
|
inst |
one-sided model formula specifying instrumental variables or a list of one-sided model formulas if different instruments should be used for the different equations (only needed for 2SLS, W2SLS, and 3SLS estimations). |
data |
an optional data framecontaining the variables in the model. |
restrict.matrix |
an optional j x k matrix to impose linear
restrictions on the coefficients by
|
restrict.rhs |
an optional vector with j elements to impose linear
restrictions (see |
restrict.regMat |
an optional matrix to impose restrictions on the coefficients by post-multiplying the regressor matrix with this matrix (see details). |
control |
list of control parameters.
The default is constructed by the function |
pooled |
logical, restrict coefficients to be equal in all equations (only for panel-like data). |
AR1 |
whether first-order autocorrelation is corrected |
rho.sel |
how rho is computed; |
model |
Static model has interceipt, while dynamic model has no intercept; see translog cost function and the package for detail. |
... |
arguments passed to |
This is a wrapper of systemfit
with an addition of autocorrelation correction. It is mainly used for SUR model with autocorrelation. The main reference sources are Greene (2003), LIMDEP 9.0 manual, Judge et al. (1985), and Berndt and Savin (1975).
systemfit
returns a list of the class systemfit
.
This list contains one special object: "eq". It is a list and contains
one object for each estimated equation. These objects are of the class
systemfit.equation
and contain the results that belong only to the
regarding equation. In addition, there are four new items in the output:
The objects of the class systemfit
and
systemfit.equation
have the following components (the elements of
the latter are marked with an asterisk (*
)):
rho |
autocorrelation coefficient |
rho_ste |
standard error of rho; if |
data |
data used for |
formula |
forumula used for |
Changyou Sun (edwinsun258@gmail.com)
Greene, W. H. (2003) Econometric Analysis, Fifth Edition, Prentice Hall.
Judge, George G.; W. E. Griffiths; R. Carter Hill; Helmut Luetkepohl and Tsoung-Chao Lee (1985) The Theory and Practice of Econometrics, Second Edition, Wiley.
LIMDEP 9.0 software manual.
Berndt, E.R., and N.E. Savin. 1975. Estimation and hypothesis testing in singular equation systems with autoregressive disturbances. Econometrica 43(5/6):937-957.
lm
; aiStaFit
; systemfit
# Check Berndt and Savin (1975) dataset
# Check Kemenda data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.