Essays on statistical inference with imperfectly observed data