Learn R Programming

ATNr (version 1.1.0)

create_matrix_parameter: Make parameter matrix

Description

Make parameter matrix

Usage

create_matrix_parameter(BM, b0, bprey, bpred, E, T.K, T0, k)

Value

A matrix filled with estimated values for a model parameter that depends on prey and predator body masses (see details)

Arguments

BM

float vector, body mass of species.

b0

const

bprey

const

bpred

const

E

const

T.K,

Celsius to Kelvin conversion

T0,

Default temperature in Kelvin

k,

Boltzmann constant

Details

Make a parameter matrix that depends on both predators and prey and that is used to define attack rates and handling times based on the general allometric equation: $$p_{i,j} = b_0 * BM_i^{bprey} * BM_j^{bpred} * exp(-E * (T0-T.K) / (k * T.K * T0))$$