Calculate p-value of a given prey type diet proportion under the predator diets and estimated diet distribution provided.
beta.pval.k(par.list, R, diet.test.k, p.mat, k)p-value p-value
a list of R.p lists of I beta distribution parameters phi and theta that define diet proportion estimates for each of the prey species. Effectively R.p beta distibutions for each of the I prey species which we bootstrap to calculate p-values.
number of bootstrap replicates to use in p-value estimation.
diet proportion for which we want the p-value
predator diet estimates.
prey species index 1..I