set.seed(45)
# Simulate from a N(0,1)
assess_coverage(n = 100, nsim = 1000, beta0 = 0.5, beta1 = 1,
noise_dist = rnorm)
[1] 0.949
# Simulate from Exp(1)
assess_coverage(n = 100, nsim = 1000, beta0 = 0.5, beta1 = 1,
noise_dist = rexp)
[1] 0.96
# Simulate from chisquare(1)
assess_coverage(n = 100, nsim = 1000, beta0 = 0.5, beta1 = 1,
noise_dist = function(m) {return(rchisq(m, df=1))})
[1] 0.946