Learn R Programming

SAGx (version 1.46.0)

Xprep.resid: Calculation of input of residuals from linear model

Description

The function fits a linear model to a microarray data matrix and calculates the residuals.

Usage

Xprep.resid(data=M, formula=~as.factor(g), design=NULL)

Arguments

data
The data matrix
formula
a linear model formula in the lm format
design
the design matrix

Value

  • A matrix with the residuals