Improved methods for causal inference and missing data problems