xcountCutoff: Determine immediately whether number of tables is over a...

Description Usage Arguments Value Examples

Description

Calling scountCutoff gives you a quick answer to whether the number of tables is over a given cutoff. It is useful in deciding whether to analyze a data set with xtest or mtest. This function is used by hwx.test and not normally called directly by the user.

Usage

1
xcountCutoff(m, cutoff = 1e+07)

Arguments

m

vector containing the numbers of alleles of each type. It can also be a matrix of genotype counts, but not a vector of genotype counts.

cutoff

Is the number of tables above or below this value?

Value

TRUE or FALSE depending on whether the table count is above or below cutoff

Examples

1
2
3
#
alleles <- c(15, 14, 11, 12, 2, 2, 1, 3)
if(xcountCutoff(alleles)) cat("There are too many tables")

HWxtest documentation built on May 31, 2019, 9:04 a.m.