A function to check if treatment is staggered in a panel data set.
Usage
check_staggered(df, idname, treatname)
Arguments
- df
the data.frame used in the function
- idname
name of column that holds the unit id
- treatname
name of column with the treatment indicator
Value
a logical indicating whether treatment is staggered