Computes the pvalue for a twosided hypothesis test following Dixon's (2002:145) description of the method of Agresti & Min (2001).
1 
Z 

nsim 
Number of simulated values. 
Pvalue of the twosided hypothesis test
This function is usually not to be called by the user. It is internally used by dixon2002
.
Marcelino de la Cruz Rot. marcelino.delacruz@upm.es
Agresti, A. & Min, Y. 2001. On smallsample confidence intervals
for parameters in discrete distributions. Biometrics, 57: 963971.
Dixon, P.M. 2002. Nearestneighbor contingency table analysis
of spatial segregation for several species. Ecoscience, 9(2): 142151.
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.