An example data set with an outcome and a grouping variable. The only difference between old_data nd old_data_alt is the outcome variable. The variables are as follows:

old_data_alt

Format

A data frame with 9 rows and 3 variables:

outcome

An outcome of interest

year

Year the data was "collected"

group

The group associated with the outcome