Takes an existing OM object and converts it to one without any observation error, implementation error, very little process error, and/or gradients in life history parameters and catchability.
Usage
tinyErr(x, ...)
# S4 method for class 'OM'
tinyErr(x, obs = TRUE, imp = TRUE, proc = TRUE, grad = TRUE, silent = FALSE)
Arguments
- x
An object of class
OM
- ...
Arguments to generic function
- obs
Logical. Remove observation error?
Obs
is replaced withPerfect_Info
- imp
Logical. Remove implementation error?
Imp
is replaced withPerfect_Imp
- proc
Logical. Remove process error? All
sd
andcv
slots inStock
andFleet
object are set to 0.- grad
Logical. Remove gradients? All
grad
slots inStock
andqinc
inFleet
are set to 0.- silent
Logical. Display messages?
Examples
OM_noErr <- tinyErr(MSEtool::testOM)
#> ✔ Removing all Observation Error
#> ✔ Removing all Implementation Error
#> ✔ Removing all Process Error
#> ✔ Removing all Gradients