testCategoricalVariableFreq: Categorical variable test

View source: R/CNV.R

testCategoricalVariableFreqR Documentation

Categorical variable test

Description

Categorical variable test

Usage

testCategoricalVariableFreq(
  sample1,
  sample2,
  s1.name = "Sample1",
  s2.name = "Sample2",
  f = "chisq.test"
)

Arguments

f

Default chisq.test, can be fisher.test

Examples

g1 = sample(c("Amp","N","Del"), 10, replace = T)
g2 = c( sample(c("Amp","N","Del"), 15, replace = T), sample(c("Del"), 5, replace = T) )
res = loonR::testCategoricalVariableFreq(g1, g2)
res$P

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.