makeExample: Generates table of parameter estimates given user...

Description Usage Arguments Value

View source: R/Table_functions.R

Description

Generates table of parameter estimates given user restrictions and data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
makeExample(
  y_name,
  T_name,
  z_name,
  data,
  controls = NULL,
  robust = FALSE,
  r_TstarU_restriction = NULL,
  k_restriction = NULL,
  n_draws = 5000,
  n_RF_draws = 1000,
  n_IS_draws = 1000,
  resample = FALSE,
  example_name
)

Arguments

y_name

Character string with the column name of the dependent variable

T_name

Character string with the column name of the endogenous regressor(s)

z_name

Character string with the column name of the instrument(s)

data

Data frame

controls

Vector of character strings specifying the exogenous variables

robust

Indicator for heteroskedasticity-robust standard errors

r_TstarU_restriction

Matrix of desired mins and maxes for r_TstarU (must be same dimensions as k_restriction). If NULL, defaults to [-0.999, 0.999]

k_restriction

Matrix of desired minx and maxes for kappa (must be same dimensions as r_TstarU_restriction). If NULL, defaults to [0.001, 0.999]

n_draws

Number of draws when generating frequentist-friendly draws of the covariance matrix

n_RF_draws

Number of reduced-form draws

n_IS_draws

Number of draws on the identified set

resample

Indicator of whether or not to resample using magnification factor

example_name

Character string describing the example

Value

LaTeX code to be passed to makeTable() function


fditraglia/ivdoctr documentation built on June 12, 2020, 7:08 p.m.