Local Learning for Covariate Selection in Nonparametric Causal Effect Estimation with Latent Variables