Code for simulations accompanying the Selective Estimation paper.