vB: vB calculates the predicted von Bertalanffy length at age

View source: R/datalow_utils.r

vBR Documentation

vB calculates the predicted von Bertalanffy length at age

Description

vB calculates length at age for the von Bertalanffy curve.

Usage

vB(par, ages)

Arguments

par

is a vector the first three cells of which are Linf, K, and t0 for the VB curve; the fourth parameter will be sigma, the standard deviation of the normal likelihoods used with the residuals

ages

is a vector of ages

Value

a vector of predicted lengths for the vector of ages in 'ages'

Examples

ages <- seq(0,20,1)
pars <- c(Linf=50,K=0.3,t0=-1.0,sigma=1.0) # Linf, K, t0, sigma
cbind(ages,vB(pars,ages))

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.