Calculate the p-value for a permutation test.
vector of values from permutation null distribution.
Eric Archer email@example.com
null.dist <- rnorm(1000)
obs <- rnorm(1, mean = 1)
plot(density(null.dist), xlim = range(c(obs, null.dist)), main = "")
abline(v = obs)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@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.