bhnoneq(year=NULL,mlen=NULL, ss=NULL, K = NULL, Linf = NULL,
Lc = NULL, nbreaks = NULL, styrs = NULL, stZ = NULL,
graph = TRUE)
nbreaks+1
Z values, the year(s) in which the
changes in mortality began, the standard deviation of lengths>=Lc, and standard errors of all parameters. An AIC value is produced for model comparison.
The estimated parameters for the number of nbreaks
is equal to 2*nbreaks+2
. Problematic parameter estimates may have extremely large t-values or
extremely small standard error. Quang C. Huynh of Virginia Institute of Marine Science revised the function to make estimation more stable. Specifically,
the derivative method BFGS is used in optim
which allows more reliable convergence to the global minimum from a given set of starting values,
a function is included to estimate Z assuming equilibrium, sigma is estimated analytically and convergence results .
Use 0 nbreaks
to get Z equilibrium.
bheq1
bheq2
bhnoneq(year=goosefish$year,mlen=goosefish$mlen, ss=goosefish$ss,
K=0.108,Linf=126,Lc=30,nbreaks=1,styrs=c(1982),stZ=c(0.1,0.3))
Run the code above in your browser using DataLab