powered by
Performs the valid t-ratio procedure.
tF(coef, se, Fstat, prec = 4)
Results from a valid t-ratio test given the first-stage F statistic.
a 2SLS coefficient.
a standard error estimate for the estimated 2SLS coefficient.
a first-stage partial F statistic.
precision of results (4 by default).
Lee, David S, Justin McCrary, Marcelo J Moreira, and Jack Porter. 2022. "Valid t-Ratio Inference for IV." American Economic Review 112 (10): 3260–90.
tf.out <- tF(coef = -0.9835, se = 0.1540, Fstat = 8598) library(testthat) test_that("Check tF cF", { expect_equal(as.numeric(tf.out[2]), 1.96) })
Run the code above in your browser using DataLab