Learn R Programming

PanelMatch (version 3.0.0)

getWits: getWits returns a vector of Wits, as defined in the paper (equation 25 or equation 23). They should be in the same order as the data frame containing the original problem data. The pts, pcs, and getWits functions act for a specific lead. So, for instance if our lead window is 0,1,2,3,4, these function must be called for each of those -- so for 0, then for 1, etc.

Description

getWits returns a vector of Wits, as defined in the paper (equation 25 or equation 23). They should be in the same order as the data frame containing the original problem data. The pts, pcs, and getWits functions act for a specific lead. So, for instance if our lead window is 0,1,2,3,4, these function must be called for each of those -- so for 0, then for 1, etc.

Usage

getWits(matched_sets, lead, data, estimation.method = "bootstrap")

Value

data.table of Wits, as described above

Arguments

matched_sets

matched.set object

lead

integer providing a specific lead value

data

data.frame object

estimation.method

method of estimation for calculating standard errors.