linearScoring: Linear Scoring Function

Description Usage Arguments Value See Also Examples

View source: R/linearScoring.R

Description

scores the module in regard to a given phenotype using a linear regression

Usage

1
linearScoring(moduleRepresentatives, phenotype, covars)

Arguments

moduleRepresentatives

a data.table containing the module representative for each sample as returned by calculateModuleRepresentatives

phenotype

a vector with the values for a phenotype of interest. It must have the same number of observations as in data.

covars

a data.table containing the covariates. The rows for the observations must be in the same order as in the phenotype vector.

Value

a list containing the module score and the regression coefficient

See Also

lm

Examples

1
#TODO

krumsiek/MoDentify documentation built on March 25, 2021, 8:32 a.m.