Calculates a units average outcome across all periods. This function operates on a data.frame that is already local to a particular unit.
get_Yibar_inner(this_df, yname)
a data.frame, for this function it should be specific to a particular unit
name of column containing the outcome (or other variable) for which to calculate its outcome in the immediate pre-treatment period