PermutationDistribution         package:coin         R Documentation

_P_e_r_m_u_t_a_t_i_o_n _D_i_s_t_r_i_b_u_t_i_o_n _o_f _C_o_n_d_i_t_i_o_n_a_l _I_n_d_e_p_e_n_d_e_n_c_e _T_e_s_t_s

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

     Density, distribution, quantile and support of permutation
     distributions of conditional independence tests.

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

     dperm(object, x, ...)
     pperm(object, q, ...)
     qperm(object, p, ...)
     support(object, p, ...)

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

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

       x: value of a standardized statistic.

       q: value of a standardized statistic.

       p: a probability.

     ...: further arguments (currently ignored).

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

     _d_p_e_r_m density function of a permutation distribution.

     _p_p_e_r_m distribution function of a permutation distribution.

     _q_p_e_r_m quantile function for a permutation distribution.

     _s_u_p_p_o_r_t the support of a permutation distribution.

_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")

     ### density of the exact distribution of the Ansari-Bradley statistic
     dens <- sapply(support(at), dperm, object = at)

     ### 95% quantile
     qperm(at, 0.95)

     ### one-sided p-value
     pperm(at, statistic(at))

