my.anderson_rubin: Anderson-Rubin CI for TSLS

Description Usage Arguments Examples

View source: R/my.anderson_rubin.R

Description

This function returns point estimates and the variance-covariance matrix. Written for data.table arguments.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
my.anderson_rubin(
  Yvar,
  Xvar,
  Inc,
  Exc,
  data,
  intercept = TRUE,
  tolerance = 1e-16,
  beta_low,
  beta_high,
  init_length = 10,
  precision
)

Arguments

Yvar

Dependent variable

Xvar

Endogenous regressor

Inc

Included instruments

Exc

Excluded instruments

data

Of type data.table

intercept

Logical, if including 1 as model intercept

tolerance

Tolerance level for matrix inversion

beta_low

Lower bound for search

beta_high

Upper bound for search

init_length

Size of search grid

precision

Maximum difference between points in and out of CI

Examples

1

joshuadhigbee/myAppliedMetrics documentation built on March 19, 2021, 3:45 p.m.