dot-calc_p_thresh_ratio: Calculates p-value-threshold ratio.

Description Usage Arguments Value

Description

Calculates p-value-threshold ratio.

Usage

1
2
3
4
5
6
7
.calc_p_thresh_ratio(
  condition,
  covariates,
  halting_test,
  thresh,
  silent = TRUE
)

Arguments

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: t_halt, U_halt, l_halt, ad_halt, ks_halt, wilks_halt, f_halt. You can create the intersection of two or more halting tests using create_halting_test.

thresh

The return value of halting_test has to be greater than or equal to thresh for the matched groups.

silent

If FALSE, prints warning when the test statistic cannot be calculated; if TRUE (the default) they are not printed.

Value

The p-value-threshold ratio, or NA if the p-value could not be calculated.

The p-value / thresh ratio.


ldamatch documentation built on May 23, 2021, 5:06 p.m.