powered by
mm calculates length-at-age for the generalized Michaelis-Menton curve. The equation being (a x ages)/(b + ages^c).
mm(p, ages)
is a vector the first three cells of which are a, b, c for the mm curve.
is a vector of ages; could be a single number
a vector of predicted lengths for a vector of ages in 'ages'
# NOT RUN { ages <- seq(0,20,1) # sigma is ignored here pars <- c(a=23.0,b=1.0,c=1.0,sigma=1.0) # a, b, c, sigma plot1(ages,mm(pars,ages),xlab="Age",ylab="Length",lwd=2) # }
Run the code above in your browser using DataLab