% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/form_models.R
\title{Generate a deSet object with full and null models}
build_models(data, cov, full.model = NULL, null.model = NULL, ind = NULL)
\item{data}{\code{matrix}: gene expression data.}

\item{cov}{\code{data.frame}: the covariates in the study.}

\item{full.model}{\code{formula}: the adjustment and the biological
variables of interest.}

\item{null.model}{\code{formula}: the adjustment variables.}

\item{ind}{\code{factor}: individuals sampled in the study. Default is
NULL. Optional.}
\code{\linkS4class{deSet}} object
\code{build_models} creates a \code{\link{deSet}} object. The user inputs
the full and null models.
# create ExpressionSet object from kidney dataset
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)
John Storey, Andy Bass
\code{\linkS4class{deSet}}, \code{\link{build_study}}