testSingleIndependence: Multiple independence tests between a reference group and...

Description Usage Arguments Details Value

View source: R/groups.R

Description

Uses Fisher's exact test.

Usage

1
testSingleIndependence(ref, groups, elements, pvalueAdjust = "BH")

Arguments

ref

Character: identifier of elements in reference group

groups

List of characters: list of groups where each element contains the identifiers of respective elements

elements

Character: all subject identifiers

pvalueAdjust

Character: method used to adjust p-values (see Details)

Details

The following methods for p-value adjustment are supported by using the respective string in the pvalueAdjust argument:

Value

Returns a groupIndependenceTest object: a list where each element is a list containing:

attribute

Name of the original groups compared against the reference groups

table

Contingency table used for testing

pvalue

Fisher's exact test's p-value


psichomics documentation built on Nov. 8, 2020, 5:44 p.m.