setup_pte() recodes time periods and groups to 1, ..., T
(the internal columns .period and .G). Anticipation and
base periods are defined in units of the time variable (calendar time),
as in did::att_gt(), so custom subset functions that compare
periods with anticipation should map them back with this function.
Value
the calendar times of p. For data whose periods were not
recoded (e.g. from setup_pte_basic()), p itself.
