penalty1: penalty1 enables the adding of a large penalty as one...

View source: R/datalow_utils.r

penalty1R Documentation

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. See aspmLL for example code that contains such a parameter. For example, when fitting an ASPM sometimes the optimal mathematical model fit can occur by depressing the R0 and having an initial depletion >>1. This is only used internally to datalowSA and so is not formally exported.

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

Examples

datalowSA:::penalty1(0.5)
datalowSA:::penalty1(0.9)
datalowSA:::penalty1(0.99)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.