pVal: Permutation Test P-value

Description Usage Arguments Author(s) Examples

Description

Calculate the p-value for a permutation test.

Usage

1
pVal(obs, null.dist)

Arguments

obs

observed value.

null.dist

vector of values from permutation null distribution.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
3
4
5
6
7
null.dist <- rnorm(1000)
obs <- rnorm(1, mean = 1)

plot(density(null.dist), xlim = range(c(obs, null.dist)), main = "")
abline(v = obs)
print(obs)
pVal(obs, null.dist)


Search within the swfscMisc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.