get.index              package:multtest              R Documentation

_F_u_n_c_t_i_o_n _t_o _c_o_m_p_u_t_e _i_n_d_i_c_e_s _f_o_r _o_r_d_e_r_i_n_g _h_y_p_o_t_h_e_s_e_s _i_n _P_a_c_k_a_g_e '_m_u_l_t_t_e_s_t'

_D_e_s_c_r_i_p_t_i_o_n:

     The hypotheses tested in a multiple testing procedure (MTP), can
     be ordered based on the output of that procedure. This function
     orders hypotheses based on adjusted p-values, then unadjusted
     p-values (to break ties in adjusted p-values), and finally test
     statistics (to break remaining ties).

_U_s_a_g_e:

     get.index(adjp, rawp, stat)

_A_r_g_u_m_e_n_t_s:

    adjp: Numeric vector of adjusted p-values.

    rawp: Numeric vector of unadjusted ("raw") marginal p-values.

    stat: Numeric vector of test statistics.

_V_a_l_u_e:

     Numeric vector of indices so that the hypotheses can be ordered
     accroding to significance (smallest p-values and largest test
     statistics first). This function is used in the plot method for
     objects of class 'MTP' to order adjusted p-values for graphical
     summaries. The summary method for objects of class 'MTP' will
     return these indices as its second component.

_A_u_t_h_o_r(_s):

     Katherine S. Pollard

_S_e_e _A_l_s_o:

     'MTP', 'plot,MTP-method', 'summary,MTP-method'

_E_x_a_m_p_l_e_s:

     data<-matrix(rnorm(200),nr=20)
     mtp<-MTP(X=data,test="t.onesamp")
     index<-get.index(adjp=mtp@adjp,rawp=mtp@rawp,stat=mtp@statistic)
     mtp@statistic[index]
     mtp@estimate[index]
     apply(data[index,],1,mean)

