pairwise.wilcox.test          package:stats          R Documentation

_P_a_i_r_w_i_s_e _W_i_l_c_o_x_o_n _r_a_n_k _s_u_m _t_e_s_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Calculate pairwise comparisons between group levels with
     corrections for multiple testing.

_U_s_a_g_e:

     pairwise.wilcox.test(x, g, p.adjust.method = p.adjust.methods,
                           paired=FALSE, ...)

_A_r_g_u_m_e_n_t_s:

       x: response vector. 

       g: grouping vector or factor. 

p.adjust.method: method for adjusting p values (see 'p.adjust'). 

  paired: a logical indicating whether you want a paired test.

     ...: additional arguments to pass to 'wilcox.test'.

_D_e_t_a_i_l_s:

     Extra arguments that are passed on to 'wilcox.test' may or may not
     be sensible in this context. In particular, only the lower
     triangle of the matrix of possible comparisons is being
     calculated, so setting 'alternative' to anything other than
     '"two.sided"' requires that the levels of 'g' are ordered
     sensibly.

_V_a_l_u_e:

     Object of class '"pairwise.htest"'

_S_e_e _A_l_s_o:

     'wilcox.test', 'p.adjust'

_E_x_a_m_p_l_e_s:

     attach(airquality)
     Month <- factor(Month, labels = month.abb[5:9])
     ## These give warnings because of ties :
     pairwise.wilcox.test(Ozone, Month)
     pairwise.wilcox.test(Ozone, Month, p.adj = "bonf")
     detach()

