get_group: get_group

View source: R/BMisc.R

get_groupR Documentation

get_group

Description

A function to calculate a unit's group in a panel data setting with a binary treatment and staggered treatment adoption and where there is a column in the data indicating whether or not a unit is treated

Usage

get_group(df, idname, tname, treatname)

Arguments

df

the data.frame used in the function

idname

name of column that holds the unit id

tname

name of column that holds the time period

treatname

name of column with the treatment indicator


bcallaway11/BMisc documentation built on March 13, 2024, 1:39 a.m.