Example of counterfactual data, where we have two groups of athletes, those who played basketball and control. Besides observed Height, this data set provides potential-outcomes Height_0 and Height_1, which represent counterfactuals. This data set was used to demonstrate causal inference, average treatment effects and individual treatment effects

data(basketball_data)

Format

A data frame with 30 rows and 6 variables:

Athlete

Name of the athlete

Treatment

Either Basketball or Control

Height_0

Potential outcome (Height) if basketball was not played

Height_1

Potential outcome (Height) if basketball was played

Height

Observed Height

Causal Effect

Difference between Height_1 and Height_0