Learn R Programming

BMisc (version 1.4.7)

check_staggered: check_staggered

Description

A function to check if treatment is staggered in a panel data set.

Usage

check_staggered(df, idname, treatname)

Value

a logical indicating whether treatment is staggered

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