draw_bounds: Computes bounds for simulated data

Description Usage Arguments Value

View source: R/SamplingUncertainty.R

Description

This function takes data and user restrictions on measurement error and endogeneity and simulates data and the resulting bounds on instrument validity.

Usage

 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
)

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.


ivdoctr documentation built on Dec. 11, 2021, 9:32 a.m.