calc_p_value: Calculates p-value using specified halting test.

View source: R/helpers.R

calc_p_valueR Documentation

Calculates p-value using specified halting test.

Description

Calculates p-value using specified halting test.

Usage

calc_p_value(condition, covariates, halting_test)

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.

Value

The p-value.


ldamatch documentation built on May 29, 2024, 7:56 a.m.