Convert stratification factors to be consistent in their levels and names, and add indicator variables

convert_stratification_factors(trial_data)

Arguments

trial_data

dataframe of other variables