Description Usage Arguments Value
View source: R/SamplingUncertainty.R
This function takes data and user restrictions on measurement error and endogeneity and simulates data and the resulting bounds on instrument validity.
1 2 3 4 5 6 7 8 9 10 | draw_bounds(
y_name,
T_name,
z_name,
data,
controls = NULL,
r_TstarU_restriction = NULL,
k_restriction = NULL,
n_draws = 5000
)
|
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 containing the min and max imposed on r_TstarU |
k_restriction |
2-element vector containing the min and max imposed on kappa |
n_draws |
Integer number of simulations to draw |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.