getWits {PanelMatch} | R Documentation |
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")
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. |
Value
data.table of Wits, as described above
[Package PanelMatch version 3.1.1 Index]