makeX-methods {crmn}R Documentation

Make X

Description

Construct a design matrix

Usage

makeX(object, factors, ...)

## S4 method for signature 'ANY,matrix'
makeX(object, factors, ...)

## S4 method for signature 'ExpressionSet,character'
makeX(object, factors, ...)

Arguments

object

an ExpressionSet

factors

column names from the pheno data of object or a design matrix

...

not used

Details

Make a design matrix from the pheno data slot of an expression set, taking care that factors and numerical are handled properly. No interactions are included and formula is the most simple possible, i.e. y~-1+term1+term2+.... Can also be given anything as object in which case factor must be a design matrix. It that case the same design matrix is returned.

Value

a design matrix

Author(s)

Henning Redestig

Examples

data(mix)
makeX(mix, "runorder")
runorder <- mix$runorder
makeX(mix, model.matrix(~-1+runorder))

[Package crmn version 0.0.21 Index]