p2colasr: P-value for a discrete distribution on small sample data

p2colasrR Documentation

P-value for a discrete distribution on small sample data

Description

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

Usage

p2colasr(Z)

Arguments

Z

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

Value

P-value of the two-sided hypothesis test

Note

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

Author(s)

Marcelino de la Cruz Rot

References

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.


ecespa documentation built on Jan. 6, 2023, 1:21 a.m.

Related to p2colasr in ecespa...