build_models: Generate a deSet object with full and null models

Description Usage Arguments Value Author(s) See Also Examples

View source: R/form_models.R

Description

build_models creates a deSet object. The user inputs the full and null models.

Usage

1
build_models(data, cov, full.model = NULL, null.model = NULL, ind = NULL)

Arguments

data

matrix: gene expression data.

cov

data.frame: the covariates in the study.

full.model

formula: the adjustment and the biological variables of interest.

null.model

formula: the adjustment variables.

ind

factor: individuals sampled in the study. Default is NULL. Optional.

Value

deSet object

Author(s)

John Storey, Andy Bass

See Also

deSet, build_study

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# create ExpressionSet object from kidney dataset
library(splines)
data(kidney)
age <- kidney$age
sex <- kidney$sex
kidexpr <- kidney$kidexpr
cov <- data.frame(sex = sex, age = age)

# create models
null.model <- ~sex
full.model <- ~sex + ns(age, df=4)

# create deSet object from data
de_obj <- build_models(data = kidexpr, cov = cov, null.model = null.model,
full.model = full.model)

edge documentation built on Nov. 8, 2020, 6:48 p.m.