penalty1: penalty1 enables the adding of a large penalty as one approaches 1.0
Description
penalty1 allows for the option of adding a large penalty as
a parameter approaches 1.0 and moves to become larger than 1. For
example, when fitting a surplus production model sometimes the
optimal mathematical model fit can occur by implying catches greater
than available biomass, implying harvest rates > 1.0. By adding a
large penalty to such values and adding those to the likelihood
such strange outcomes can be avoided. This will accept a single
value or a vector.
Usage
penalty1(x)
Arguments
x
the parameter value that potentially incurs a penalty
Value
a single value as a penalty to be added to a Log-Likelihood or SSQ