Anovareturns a function of one argument with bindings for
p. The function, when evaluated, performs an ANOVA using
covas the covariate. It returns
TRUEif the p value for a difference in means is less than
Anova(cov, p=0.05, na.rm=TRUE)
Anovawill be applied to.
NA's will be removed.
Anovareturns a function with bindings for
pthat will perform a one-way ANOVA.
The covariate can be continuous, in which case the test is for a linear effect for the covariate.
lmto fit a linear model of the form
lm(x ~ cov), where
xis the set of gene expressions. The F statistic for an overall effect is computed and if it has a p-value less than
pthe function returns
TRUE, otherwise it returns
FALSEfor that gene.
set.seed(123) af <- Anova(c(rep(1,5),rep(2,5)), .01) af(rnorm(10))