Usage
qregspiv(form,wy=NULL,wmat=NULL,inst=NULL,winst=NULL,shpfile=NULL,
tau=.5,rhomat=NULL,printsariv=FALSE,silent=FALSE,
nboot=100,alpha=.05,data=NULL)
Arguments
wy
The WY variable. Default: not specified; program attempts to calculate WY using wmat or shpfile.
wmat
Directly enter wmat rather than creating it from a shape file. Default: not specified. wmat is needed
unless WY is provided and a full instrument list is specified using inst. Default: W = NULL.
inst
List of instruments not to be pre-multiplied by W. Entered as inst=~w1+w2 ...
Default: inst=NULL. See details for more information.
winst
List of instruments to be pre-multiplied by W before use. Entered as winst=~w1+w2 ...
Default: inst=NULL. See details for more information.
shpfile
Shape file used to construct W based on first order contiguity using a queen criterion. Needed if wmat is not
provided when the program requires it.
tau
The quantile. Default: tau = .5
rhomat
A vector of values for $\rho$. If rhomat=NULL, uses the Kim and Muller (2004) two-stage approach to estimate the model.
If rhomat is a vector with two or more entries, uses the Chernozhukov and Hansen (2006) IV approach to estimate the
printsariv
If TRUE, also estimates a standard spatial AR model using an IV approach. Instruments for WY are based on
the inst and winst options. Default: printsariv=FALSE.
silent
If TRUE, no results are printed. Useful for Monte Carlo.
nboot
The number of simulations for the bootstrap standard errors. Needed for the Kim and Muller (2004) model. Default: nboot=100.
alpha
Probability for the confidence intervals, calculated by the percentile method for the Kim and Muller (2004) model.
Default: alpha=.05, i.e., a 95 percent confidence interval.
data
A data frame containing the data. Default: use data in the current working directory.