getWits: getWits returns a vector of Wits, as defined in the paper...

View source: R/estimation_components.R

getWitsR 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


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