where xi is a Bernoulli random variable with Pr (xi = 0) = p, εi is a random variable
with zero mean and variance one, h is a parameter controlling the degree of
heteroskedasticity, and k is set so that the population R2 is one half.12 Throughout,
we set β0 = β1 = 1 and p = 0.8.