jive.est {SteinIV} | R Documentation |
The Jackknife Instrumental Variable Estimator (JIVE).
Description
Compute the JIVE for a multiple regression, as well as the set of standard errors for the individual vector entries, and the estimate of the asymptotic variance/covariance matrix.
Usage
jive.est(y,X,Z,SE=FALSE,n.bt=100)
Arguments
y |
Numeric: A vector of observations, representing the outcome variable. |
X |
Numeric: A matrix of observations, whose number of columns
corresponds to the number of predictors in the model, and the number
of rows should be conformal with the number of entries in |
Z |
Numeric: A matrix of observations representing the
intrumental variables (IVs) in the first-stage structural equation. The
number of IVs should be at least as large as the number of
endogenous variables in |
SE |
Logical: If TRUE, then the function also returns the standard errors of the individual JIVE estimators, and a bootstrap estimate of its asymptotic variance/covariance matrix. |
n.bt |
Numeric: The number of bootstrap samples performed for estimating the variance/covariance matrix. This automatically occurs, whenever the user selects the SE to be true. |
Details
The JIVE was originally introduced by Angrist et al. (1995), in order to reduce the finite-sample bias of the TSLS estimator, when applied to a large number of instruments. Indeed, the TSLS estimator tends to behave poorly as the number of instruments increases. We briefly outline this method. See Angrist et al. (1999) for an exhaustive description.
The model is identical to the one used in the rest of this package. That is,
the second-stage equation is modelled as
in which
is a vector of
observations representing the
outcome variable,
is a matrix of order
denoting the predictors of the model, and comprised of both exogenous
and endogenous variables,
is the
-dimensional
vector of parameters of interest; whereas
is an unknown
vector of error terms.
Moreover, the first-stage level of the model is given by a multivariate
multiple regression. That is, this is a linear modle with a
multivariate outcome variable, as well as multiple
predictors. This first-stage model is represented in this manner,
,
where
is the matrix of predictors from the second-stage
equation,
is a matrix of instrumental variables (IVs) of order
,
is a matrix of unknown parameters of
order
; whereas
denotes an unknown matrix of order
of error terms.
For computing the JIVE, we first consider the estimator of the regression parameter in the first-stage equation, which is denoted by
This matrix is of order . The matrix of predictors,
, projected
onto the column space of the instruments is then given by
. The JIVE proceeds by
estimating each row of
without using the corresponding data
point. That is, the
th row in the jackknife matrix,
,
is estimated without using the
th row of
.
This is conducted as follows. For every
, we first compute
where and
denote matrices
and
after
removal of the
th row, such that these two matrices are of order
and
, respectively. Then, the
matrix
is constructed by stacking these jackknife
estimates of
, after they have been pre-multiplied by the
corresponding rows of
,
where each is an
-dimensional row vector. The JIVE
estimator is then obtained by replacing
with
in the standard formula of the TSLS, such that
In this package, we have additionally made use of the computational
formula suggested by Angrist et al. (1999), in which each row of
is calculated using
where ,
and
are
-dimensional row vectors; and with
denoting
the leverage of the corresponding data point in the first-level
equation of our model, such that each
is defined as
.
Value
list |
A list with one or three arguments, depending on whether the user has activated the SE flag. The first element (est) in the list is the TSLS estimate of the model in vector format. The second element (se) is the vector of standard errors; and the third element (var) is the sample estimate of the asymptotic variance/covariance matrix. |
Author(s)
Cedric E. Ginestet <cedric.ginestet@kcl.ac.uk>
References
Angrist, J., Imbens, G., and Krueger, A.B. (1995). Jackknife instrumental variables esti- mation. Technical Working Paper 172, National Bureau of Economic Research.
Angrist, J.D., Imbens, G.W., and Krueger, A.B. (1999). Jackknife instrumental variables estimation. Journal of Applied Econometrics, 14(1), 57–67.
Examples
### Generate a simple example with synthetic data, and no intercept.
n <- 100; k <- 3; l <- 3;
Ga<- diag(rep(1,l)); be <- rep(1,k);
Z <- matrix(0,n,l); for(j in 1:l) Z[,j] <- rnorm(n);
X <- matrix(0,n,k); for(j in 1:k) X[,j] <- Z[,j]*Ga[j,j] + rnorm(n);
y <- X%*%be + rnorm(n);
### Compute JIVE estimator with SEs and variance/covariance matrix.
print(jive.est(y,X,Z))
print(jive.est(y,X,Z,SE=TRUE));