adjPval               package:maanova               R Documentation

_G_e_n_e_r_a_t_e _F_D_R _a_d_j_u_s_t_e_d _P _v_a_l_u_e_s _f_o_r _F _t_e_s_t _r_e_s_u_l_t.

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

     This function takes a result object from 'matest' and calculate
     the FDR adjusted P values. The new P values will be appended to
     the input object as additional fields. It has four options; 
     "stepup" (Hochberg and Benjamini, 1990), "adaptive" (Benjamini and
     Hochberg, 2000), "stepdown" (Westfall and Young, 1993) and "jsFDR"
     (Storey, 2002). "jsFDR" option uses 'qvalue' package by John
     Storey and user suppose to install 'qvalue' package before using
     this option. There is no default option, thus you need to specify
     one option.

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

     adjPval(matestobj, method=c("stepup","adaptive", "stepdown", "jsFDR"))

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

matestobj: An object of class 'matest', which is the result from
          'matest'.

  method: The method for FDR control.

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

     An object of class 'matest' with the following fields added for
     each F test: 

 adjPtab: FDR adjusted tabulated P values.

adjPvalperm: FDR adjusted permutation P values.

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

     Hao Wu

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

     data(abf1)
     ## Not run: 
      
     fit.full.simple = fitmaanova(abf1,formula = ~Strain)
     # F-test strain effect
     ftest.all = matest(abf1, fit.full.simple, term="Strain",n.perm= 1000)
     # make FDR adjusted P values
     ftest.all = adjPval(ftest.all, 'jsFDR')
     # there will be new fields in test.strain.fix after this
     ## End(Not run)

