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 calcualte
     the FDR adjusted P values. The new P values will be appended to
     the input object as additional fields.

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

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

_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(paigen)
     paigen <- createData(paigen.raw, n.rep=2)
     model.noint.fix <- makeModel(data=paigen, formula=~Array+Dye+Spot+Strain+Diet)
     # F-test strain effect
     ## Not run: 
     test.strain.fix <- matest(paigen, model.noint.fix, term="Strain", n.perm=100,
             shuffle.method="resid", test.method=rep(1,4))
     # make FDR adjusted P values
     test.strain.fix <- adjPval(test.strain.fix)
     ## End(Not run)
     # there will be new fields in test.strain.fix after this

