Anova               package:genefilter               R Documentation

_A _f_i_l_t_e_r _f_u_n_c_t_i_o_n _f_o_r _A_n_a_l_y_s_i_s _o_f _V_a_r_i_a_n_c_e

_D_e_s_c_r_i_p_t_i_o_n:

     'Anova' returns a function of one argument with bindings for 'cov'
     and 'p'. The function, when evaluated, performs an ANOVA using
     'cov' as the covariate. It returns 'TRUE' if the p value for a
     difference in means is less than 'p'.

_U_s_a_g_e:

     Anova(cov, p=0.05, na.rm=TRUE)

_A_r_g_u_m_e_n_t_s:

     cov: The covariate. It must have length equal to the number of
          columns of the array that 'Anova' will be applied to. 

       p: The p-value for the test. 

   na.rm: If set to 'TRUE' any 'NA''s will be removed. 

_D_e_t_a_i_l_s:

     The function returned by 'Anova' uses 'lm' to fit a linear model
     of the form 'lm(x ~ cov)', where 'x' is the set of gene
     expressions. The F statistic for an overall effect is computed and
     if it has a _p_-value less than 'p' the function returns 'TRUE',
     otherwise it returns 'FALSE' for that gene.

_V_a_l_u_e:

     'Anova' returns a function with bindings for 'cov' and 'p' that
     will perform a one-way ANOVA.

     The covariate can be continuous, in which case the test is for a
     linear  effect for the covariate.

_A_u_t_h_o_r(_s):

     R. Gentleman

_S_e_e _A_l_s_o:

     'kOverA', 'lm'

_E_x_a_m_p_l_e_s:

       set.seed(123)
       af <- Anova(c(rep(1,5),rep(2,5)), .01)
       af(rnorm(10))

