ML {MLZ} | R Documentation |
Mean length-based mortality estimator
Description
Estimator of instantaneous total mortality (Z) from a time series of mean length data.
Usage
ML(MLZ_data, ncp, start = NULL, grid.search = TRUE,
parallel = ifelse(ncp > 2, TRUE, FALSE), min.time = 3, Z.max = 5,
figure = TRUE)
Arguments
MLZ_data |
An object of class |
ncp |
The number of change points in total mortality in the time series. |
start |
An optional list of starting values. See details. |
grid.search |
If |
parallel |
Whether grid search is performed with parallel processing. Ignored if |
min.time |
The minimum number of years between each change point for the grid search, passed
to |
Z.max |
The upper boundary for Z estimates. |
figure |
If |
Details
For a model with I
change points, the starting values in
start
is a list with the following entries:
Z a vector of length = I+1
.
yearZ a vector of length = I
.
start
can be NULL
, in which case, the supplied starting values depend on
the value of grid.search
. If grid.search = TRUE
, starting values will use the
values for yearZ
which minimize the negative log-likelihood from the grid search.
Otherwise, the starting values for yearZ
evenly divide the time series.
Value
An object of class MLZ_model
.
References
Gedamke, T. and Hoenig, J.M. 2006. Estimating mortality from mean length data in nonequilibrium situations, with application to the assessment of goosefish. Transactions of the American Fisheries Society 135:476-487.
See Also
Examples
## Not run:
data(Goosefish)
res <- ML(Goosefish, ncp = 2)
res <- ML(Goosefish, ncp = 2, start = list(Z = c(0.1, 0.3, 0.5), yearZ = c(1978, 1988)))
res <- ML(Goosefish, ncp = 2, grid.search = TRUE)
## End(Not run)