Causal Inference for Natural Language Data and Multivariate Time Series