Use a kde to estimate pvalue

kdePval(nulls, real, h = NA, xmin = NA, xmax = NA)

Arguments

nulls

a vector of null hypothesis results

real

a single value for the real data

h

smoothing factor

xmin

minimum value for the distribution

xmax

maximum value for the distribution

Value

a list with pvalues and kde data