Causal Inference And Model Selection In Complex Settings