.choose_best_test_statistic | R Documentation |
Chooses rows with best test statistic.
.choose_best_test_statistic(
dat,
condition,
covariates,
halting_test,
thresh,
tiebreaker
)
dat |
A data.table with an ind column with indices for items to consider dropping. |
condition |
A factor vector containing condition labels. |
covariates |
A columnwise matrix containing covariates to match the conditions on. |
halting_test |
A function to apply to 'covariates' (in matrix form)
which is TRUE iff the conditions are matched.
Signature: halting_test(condition, covariates, thresh).
The following halting tests are part of this package:
|
thresh |
The return value of halting_test has to be greater than or equal to thresh for the matched groups. |
tiebreaker |
NULL, or a function similar to halting_test, used to decide between cases for which halting_test yields equal values. |
A data.table containing only the rows of dat with for best test statistic values (decided primarily by halting_test, then by tiebreaker).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.