mlm {omics} | R Documentation |
Multiple Linear Models
Description
Fits multiple linear models.
Usage
mlm(formula, data, vars, save.residuals=FALSE)
Arguments
formula |
an object of class |
data |
an optional data frame, list or environment (or object coercible
by |
vars |
a character vector of variables of interest. |
save.residuals |
whether model residuals should be stored and returned. |
Value
A list with elements:
coefficients |
if 'vars' is missing or non-empty, an array (or data
frame, if |
residuals |
if |
See Also
Examples
coefs <- matrix(runif(6*10), 6, 10)
X <- matrix(rnorm(100*5), 100, 5)
Y <- cbind(1, X)
models <- mlm(Y ~ X)
str(models)
[Package omics version 0.1-5 Index]