draw_bounds {ivdoctr} | R Documentation |
Computes bounds for simulated data
Description
This function takes data and user restrictions on measurement error and endogeneity and simulates data and the resulting bounds on instrument validity.
Usage
draw_bounds(
y_name,
T_name,
z_name,
data,
controls = NULL,
r_TstarU_restriction = NULL,
k_restriction = NULL,
n_draws = 5000
)
Arguments
y_name |
Character vector of the name of the dependent variable |
T_name |
Character vector of the names of the preferred regressors |
z_name |
Character vector of the names of the instrumental variables |
data |
Data to be analyzed |
controls |
Character vector containing the names of the exogenous regressors |
r_TstarU_restriction |
2 element vector of bounds on r_TstarU |
k_restriction |
2-element vector of bounds on kappa |
n_draws |
Integer number of simulations to draw |
Value
List containing simulated data observables (covariances, correlations, and R-squares), indications of whether the identified set is empty, the unrestricted and restricted bounds on instrumental relevance, instrumental validity, and measurement error.