I have bootstrapped a distribution of values that is non-normal. Now I would like to calculate the p-value of a parameter mu against that distribution (i.e. how likely, given the bootstrapped distribution, is it to receive mu). Using example data from
require(SuppDists)
## make a weird dist with Kurtosis and Skew
a <- rnorm( 5000, 0, 2 )
b <- rnorm( 1000, -2, 4 )
c <- rnorm( 3000, 4, 4 )
babyGotKurtosis <- c( a, b, c )
This threat gives the intution to find the probability density function numerically. For a normal, they propose:
mu = 1.64
dF <- function(x)dnorm(x)
pF <- function(q)integrate(dF,-Inf,q)$value
> pF(mu)
[1] 0.9494974
> pnorm(mu)
[1] 0.9494974
Just how to apply this approach to a simulated non-normal distribution?