Essays on statistical learning and causal inference on panel data