p2colasr               package:ecespa               R Documentation

_P-_v_a_l_u_e _f_o_r _a _d_i_s_c_r_e_t_e _d_i_s_t_r_i_b_u_t_i_o_n _o_n _s_m_a_l_l _s_a_m_p_l_e _d_a_t_a

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

     Computes the p-value  for a two-sided hypothesis test following
     Dixon's (2002:145) description of the method of Agresti & Min
     (2001).

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

     p2colasr(Z, nsim = length(Z))

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

       Z: 'vector' with the observed Z-score in the first position and 
          all the simulated values behind. 

    nsim: Number of simulated values. 

_V_a_l_u_e:

     P-value of the two-sided hypothesis test

_N_o_t_e:

     This function is usually not to be called by the user. It is
     internally used by 'dixon2002'.

_A_u_t_h_o_r(_s):

     Marcelino de la Cruz Rot. marcelino.delacruz@upm.es

_R_e_f_e_r_e_n_c_e_s:

     Agresti, A. & Min, Y. 2001. On small-sample confidence intervals 
     for parameters in discrete distributions. _Biometrics_, *57*:
     963-971.

      Dixon, P.M. 2002. Nearest-neighbor contingency table analysis of
     spatial segregation for several species. _Ecoscience_, *9*(2):
     142-151.

