runTestsMods: Perform tests to test for associations between subgroups and...

View source: R/runTestsMods.R

runTestsModsR Documentation

Perform tests to test for associations between subgroups and phenotypic variables

Description

Adds statistical tests results to the output of K2tax() based on numeric and factor variables in info.

Usage

runTestsMods(K2res, infoClass = NULL)

Arguments

K2res

An object of class K2. The output of K2tax().

infoClass

A named vector denoted types of tests to run on phenotypic variables (See K2preproc()).

Value

An object of class K2.

Examples

## Read in ExpressionSet object
library(Biobase)
data(sample.ExpressionSet)

## Pre-process and create K2 object
K2res <- K2preproc(sample.ExpressionSet)

## Run K2 Taxonomer algorithm
K2res <- K2tax(K2res,
            stabThresh=0.5)

infoClassVector <- c(sex='factor', score='numeric1')

runTestsMods(K2res, infoClass=infoClassVector)

head(getTestsModTable(K2res))


montilab/K2Taxonomer documentation built on Jan. 25, 2024, 4:29 p.m.