Linking a predictive model to causal effect estimation