This helper function compares observed values against permuted values and
counts the number of permuted values that are greater than or equal to each
observed value.
Usage
countLargerThan(observedVec, permutedVec)
Arguments
- observedVec
Numeric vector. The observed values.
- permutedVec
Numeric vector. The permuted values to compare against
the observed values.
Value
A numeric vector containing the counts of permuted values greater
than or equal to the corresponding observed values.