Learn R Programming

MQMF (version 0.1.0)

Gz: Gz calculates predicted Gompertz length-at-age growth curve

Description

Gz calculates length-at-age for the Gompertz curve. This curve can have an inflection near the origin as well as at an age where growth slows due to maturity occurring.

Usage

Gz(p, ages)

Arguments

p

is a vector the first three cells of which are a, b, c, for the Gz curve.

ages

is a vector of ages; could be a single number

Value

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

Examples

Run this code
# NOT RUN {
 ages <- seq(0,20,1)   # sigma is ignored here
 oldpar <- par(no.readonly=TRUE)
 pars <- c(a=26.0,b=2.8,c=-0.65,sigma=1.0) # a, b, c, sigma;
 plot1(ages,Gz(pars,ages),xlab="Age",ylab="Length",lwd=2)
 par(oldpar)
# }

Run the code above in your browser using DataLab