Description Usage Arguments Details Value Note Author(s) References See Also Examples
This function is a slight modification of function Anova
of
package genefilter.
1 | twoWayAnova(cov1, cov2, interaction, na.rm = TRUE)
|
cov1 |
The first covariate. It must have length equal to the number of
columns of the array that the result of |
cov2 |
The second covariate. It must have length equal to the number of
columns of the array that the result of |
interaction |
logical, should interaction be considered |
na.rm |
a logical value indicating whether 'NA' values should be stripped before the computation proceeds. |
The function returned by twoWayAnova
uses lm
to fit
a linear model of the form lm(x ~ cov1*cov2)
, where x
is the set
of gene expressions. The F statistics for the main effects and the interaction are
computed and the corresponding p-values are returned.
twoWayAnova
returns a function with bindings for cov1
and
cov2
that will perform a two-way ANOVA.
A first version of this function appeared in package SLmisc.
Matthias Kohl Matthias.Kohl@stamats.de
R. Gentleman, V. Carey, W. Huber and F. Hahne (2006). genefilter: methods for filtering genes from microarray experiments. R package version 1.13.7.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.