coefs: Get coefs

coefsR Documentation

Get coefs

Description

Get coefs

Usage

coefs(object, ...)

## S3 method for class 'factor'
coefs(object, ...)

## S3 method for class 'data.table'
coefs(object, fit = fits(object), svars = NULL, ...)

## S3 method for class 'SummarizedExperiment'
coefs(object, fit = fits(object), ...)

Arguments

object

factor, data.table, SummarizedExperiment

...

required for s3 dispatch

fit

'limma', 'lm', 'lme', 'lmer', 'wilcoxon'

svars

NULL or charactervector (svar for which to return coefs)

Value

character vector

Examples

# Factor
    x <- factor(c('A', 'B', 'C'))
    coefs(x)
    coefs(code(x, contr.treatment.explicit))
    coefs(code(x, code_control))
    
# SummarizedExperiment
    file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
    object <- read_metabolon(file, fit = 'limma')
    coefs(object)

bhagwataditya/importomics documentation built on Nov. 28, 2024, 8:28 a.m.