Essays On Causal Inference With Endogeneity And Missing Data