ks_halt: A univariate halting test using the Kolmogorov-Smirnov Test,...

Description Usage Arguments Details Value

View source: R/halting_tests.R

Description

The condition must have two levels.

Usage

1
ks_halt(condition, covariates, thresh)

Arguments

condition

A factor vector containing condition labels.

covariates

A columnwise matrix containing covariates to match the conditions on.

thresh

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

Details

Note that unlike many tests, the null hypothesis is that the two samples are are drawn from the same distribution.

Warnings such as "cannot compute exact p-value with ties" are suppressed.

Value

The ratio of the p-value and the threshold, or 0 if the p-value is less than the threshold. If there are more than two conditions, it returns the smallest value found for any condition pair.


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