root.beta: Find root (i.e. solve f(pio) = PVAL(pio) = alpha1 using...

root.betaR Documentation

Find root (i.e. solve f(pio) = PVAL(pio) = alpha1 using either uniroot or optimize.

Description

Find root (i.e. solve f(pio) = PVAL(pio) = alpha1 using either uniroot or optimize.

Usage

root.beta(x1, x2, alpha, par.list, R, p.mat, k, low = TRUE)

Arguments

x1

lower starting value

x2

upper starting value

alpha

simultaneous confidence level

par.list

parameters needed to compute p-value by bootstrapping

R

number of bootstraps

p.mat

predator diet estimates

k

prey species index 1...I

low

TRUE if computing lower interval.

Value

root which will be lower or upper CI limit


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