View source: R/estimation_components.R
getWits | 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.
getWits(matched_sets, lead, data, estimation.method = "bootstrap")
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. |
data.table of Wits, as described above
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.