R - Inference on counterfactual distributions