PairContrast             package:maanova             R Documentation

_P_a_i_r_w_i_s_e _c_o_m_p_a_r_i_s_o_n _m_a_t_r_i_x

_D_e_s_c_r_i_p_t_i_o_n:

     It returns all possible pairwise comparison.

_U_s_a_g_e:

     PairContrast(n)

_A_r_g_u_m_e_n_t_s:

       n: Number of levels in test term.

_V_a_l_u_e:

     res: All pairwise comparison matrix.

_A_u_t_h_o_r(_s):

     Hyuna Yang

_E_x_a_m_p_l_e_s:

     # load in abf1 data
     data(abf1)
     ## Not run: 
     fit.full.mix <- fitmaanova(abf1, formula = ~Strain+Sample, 
        random = ~Sample)
     ftest.all = matest(abf1, fit.full.mix, test.method=c(1,1),
         shuffle.method="sample", term="Strain", n.perm= 100)
     C = PairContrast(3)
     ftest.pair = matest(abf1, fit.full.mix, Contrast = C, 
        term="Strain", n.perm=100)
     ## End(Not run)

