expand_treated_ts: expand_treated_ts Builds a list that contains all times in a...

View source: R/matched_set_helpers.r

expand_treated_tsR Documentation

expand_treated_ts Builds a list that contains all times in a lag window that correspond to a particular treated unit. This is structured as a list of vectors. Each vector is lag + 1 units long. The overall list will be the same length as the number of matched sets

Description

expand_treated_ts Builds a list that contains all times in a lag window that correspond to a particular treated unit. This is structured as a list of vectors. Each vector is lag + 1 units long. The overall list will be the same length as the number of matched sets

Usage

expand_treated_ts(lag, treated.ts)

Arguments

lag

lag value

treated.ts

times of treated observations

Value

list. Contains all times in a lag window that correspond to a particular treated unit


PanelMatch documentation built on June 22, 2024, 10:32 a.m.