f_AK: Regression functions in Armstrong and Kolesar (2020)

Description Usage Arguments References Examples

View source: R/DGP.R

Description

Functions f_1(x), f_2(x), and f_3(x) as defined in Section 5 of Armstrong and Kolesár (2020).

Usage

1
f_AK(spec, x, M)

Arguments

spec

which specification to use; choose among 1,2,3.

x

a vector of x values.

M

bound on the second derivative

References

Armstrong, Timothy B., and Michal Kolesár. 2020. "Simple and Honest Confidence Intervals in Nonparametric Regression." Quantitative Economics 11 (1): 1–39.

Examples

1
2
3
4
5
x <- runif(100, -1, 1)
M <- 2
f_AK(1, x, M)
f_AK(2, x, M)
f_AK(3, x, M)

koohyun-kwon/HTEBandSim documentation built on Dec. 21, 2021, 7:43 a.m.