h_step function

Helper functions for subgroup treatment effect pattern (STEP) calculations