pcs: Prepare Control Units pcs and pts create data frames with the...

View source: R/estimation_components.R

pcsR Documentation

Prepare Control Units pcs and pts create data frames with the time/id combinations–that need to be found so that they can be easily looked up in the data frame via a hash table. The data frame also contains information about the weight of that unit at particular times, so we use the hash table to look up where to put this data so that we can easily assign the appropriate weights in the original data frame containing the problem data. pcs does this for all control units in a matched set. pts does this for all treated units.

Description

Prepare Control Units pcs and pts create data frames with the time/id combinations–that need to be found so that they can be easily looked up in the data frame via a hash table. The data frame also contains information about the weight of that unit at particular times, so we use the hash table to look up where to put this data so that we can easily assign the appropriate weights in the original data frame containing the problem data. pcs does this for all control units in a matched set. pts does this for all treated units.

Usage

pcs(sets, lead.in)

Arguments

sets

object describing the matched sets

lead.in

integer describing a particular lead value.

Value

data.frame object with time-id combinations


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