Get unit-level Difference-in-Differences estimates
Description
Get unit-level Difference-in-Differences estimates
Usage
get_unitdid(
object,
normalized = NULL,
export = TRUE,
only_full_horizon = FALSE
)
Arguments
object
|
unitdid object
|
normalized
|
Logical. If TRUE , the function will normalize them by the mean of the imputed outcome variable. Default is inherited from the unitdid object.
|
export
|
Logical. If TRUE , the function will not export the columns with the zz000 prefix, which are used in the internal computation.
|
only_full_horizon
|
Logical. If TRUE, only the event year (ename ) with full horizon (k_min:k_max ) will be exported. This is recommended in the case that you do not want to change the composition of the event year (or age for the child penalties) for each estimated point in k_min:k_max for aggregation. Default is FALSE.
|
Value
A dataframe with a new column of the unit-level DiD estimates