summarytable             package:maanova             R Documentation

_S_u_m_m_a_r_i_z_e _t_h_e _m_a_t_e_s_t _r_e_s_u_l_t.

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

     This function returns list of probe ID with p-value, FDR adjusted
     p-value or fold change selected by given threshold.

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

     summarytable(matestobj, method=c("Fold.change","Pvalperm","adjPvalperm"), 
          test =c("F1","Fs"),whichTest=c("F1.Pvalperm","F1.adjPvalperm", 
              "Fs.Pvalperm","Fs.adjPvalperm"), 
              threshold, outfile="summarytable.csv")

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

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

  method: Results that you want to include in the output among
          Fold.change, Pvalperm and adjPvalperm. Default is possible
          every field.

    test: Test that you want to include in the output among F1, Fs and
          Fss. Default is possible every test.

whichTest: Test result used to get the subset. If whichTest is not
          provided, save all result. 

threshold: Threshold that you want to get the subset. If threshold is
          not provided, save all result.

 outfile: File name that you want to save the result. Default name is
          'summarytable.csv'

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

     This function use

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

  result: It returns result fields (among Fold.change, P-value or
          adjust P-value if you selected) from test statistics (among
          F1, Fs or Fss statistics if you selected), subsetted by given
          statistics ('whichtest') is smaller than 'threshold'.

 outfile: .csv file saved under the working directory.

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

     Hyuna Yang

_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')
     summarytable(ftest.all, outfile='all.csv')
     smallset = summarytable(ftest.all, method ='Pvalperm',
     test=c('F1','Fs'), whichTest='Fs.Pvalperm', threshold = 0.1)
     ## End(Not run)

