pval: P Value for a Monte Carlo Test of Polygon Overlapping
Description
Computes the p-value and sign of deviation for the hypothesis that the first value in a vector is larger or smaller (i.e., a two-sided test) than the expected value represented by all the other values in the vector, or alternatively, computes a one-sided test.
Vector of length one whose absolute value represents the p-value and whose sign indicates wether the first value in x is larger (positive) or smaller (negative) than the expected value.
Arguments
x
A vector, usually with some observed statistic in the first position (the observed overlapp) followed by a sequence of the same statistic computed for several realizations of a null model against which we test our hypothesis (i.e., a sequence of simulated, i.e., rotated, overlapps).
alternative
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.