beta.pval.k: Calculate p-value of a given prey type diet proportion under...

beta.pval.kR Documentation

Calculate p-value of a given prey type diet proportion under the predator diets and estimated diet distribution provided.

Description

Calculate p-value of a given prey type diet proportion under the predator diets and estimated diet distribution provided.

Usage

beta.pval.k(par.list, R, diet.test.k, p.mat, k)

Arguments

par.list

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.

R

number of bootstrap replicates to use in p-value estimation.

diet.test.k

diet proportion for which we want the p-value

p.mat

predator diet estimates.

k

prey species index 1..I

Value

p-value p-value


QFASA documentation built on Nov. 17, 2023, 1:08 a.m.