# NOT RUN {
n = 2000; p = 10
X = matrix(rnorm(n*p), n, p)
W = rbinom(n, 1, 0.4 + 0.2 * (X[,1] > 0))
Y = pmax(X[,1], 0) * W + X[,2] + pmin(X[,3], 0) + rnorm(n)
ols_example <- double_ML(X, Y, W, method = c("ols"),
show.progress = FALSE,
k.fld = 2,
simulations = 10)
plot_ML(ols_example)
# }
Run the code above in your browser using DataLab