pvalue-methods             package:coin             R Documentation

_E_x_t_r_a_c_t _P-_V_a_l_u_e_s

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

     Extracts the p-value from objects representing null distributions
     of  independence tests.

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

     pvalue(object, ...)

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

  object: an object inheriting from class 'IndependenceTest-class'.

     ...: further arguments (currently ignored).

_M_e_t_h_o_d_s:

     _p_v_a_l_u_e extracts the p-value from the specified object.

_E_x_a_m_p_l_e_s:

     ### artificial 2-sample problem
     df <- data.frame(y = rnorm(20), x = gl(2, 10))
      
     ### Ansari-Bradley test
     at <- ansari_test(y ~ x, data = df, distribution = "exact")

     at

     pvalue(at)

