create_halting_test {ldamatch} | R Documentation |
Creates halting test from multiple tests.
Description
The created halting test function returns the smallest p-value-to-threshold ratio of the values produced by the supplied tests, or zero if any of the p-values does not exceed the threshold. The resulting function expects one threshold per halting test in a vector or it recycles the given value(s) to get a threshold for each one.
Usage
create_halting_test(halting_tests)
Arguments
halting_tests |
Either a vector of halting test functions
(or function names) with the signature
halting_test(condition, covariates, thresh)
(for the meaning of the parameters see
|
Value
A function that returns the minimum of all halting test values; the threshold value supplied to it is recycled for the individual functions.