This function package contains the functions for performing IV interval regression, as per Bettin-Lucchetti(2012), Empirical Economics (DOI: 10.1007/s00181-011-0493-9). The public functions you can use in scripts are: *---------------------------------- ivintreg Parameters: series inf (Lower limit), series sup (Upper limit), list y2 (Endogenous regressors) list X1 (Exogenous regressors) list X2 (Instruments) scalar est_type (Estimator) 1: 2-step 2: LIML (default) scalar verbose (Verbosity) 0: print nothing 1: print results (default) 2: print iterations (LIML only) scalar robust ("Robust se") 0: Hessian 1: Sandwich (default) 2: Clustered series clvar (optional, Clustering variable) Performs estimation and returns a bundle containing the results. The bundle keys are (in alphabetical order): coeff: matrix, coefficients for the main equation coeff_tot: matrix, stacked parameters for both equations (ML only) cvarname: string, name of the clustering variable (if any) est_type: scalar, estimator type exotest: scalar, exogeneity test statistic k1: scalar, number of exogenous variables k2: scalar, number of instruments lnl: scalar, log-likelihood at maximum (NA for 2-step estimator) m: scalar, number of endogenous variables ncoeff: scalar, number of coefficients for the main equation nobs: scalar, number of observations used overid_test: scalar, overidentification test statistic (ML only) robust: scalar, vcv type sigma: scalar, estimated regression s.e. stage1_test: scalar, weak instrument statistic (ML only) stderr: matrix, estimated standard errors vcv: matrix, estimated parameter covariance matrix vPi: matrix, covariance for 1st stage parameters (2-step only) vcv_tot: matrix, covariance for coeff_tot X1_names: string, variable names for X1 X2_names: string, variable names for X2 y2_names: string, variable names for y2 Note that the instruments X2 list is additional to (ie, should not include) the regressor list X1. *---------------------------------- ivintreg_print Parameters: bundle *mod Prints out the results from the bundle; returns nothing ======================================================================= changelog ======================================================================= 1.0 -> 1.1 fixed a few outdated syntax elements, add clustering option 1.1 -> 1.2 print out a sort-of-weak-instruments Wald test 1.2 -> 1.3 no user-visible changes. Internally: update syntax to more modern standards; introduce checks for numerical problems in computing the score