Insert Back Transformations of Model Parameters
Source:R/tmb_model_editors.R
mp_tmb_insert_backtrans.Rd
Insert Back Transformations of Model Parameters
Usage
mp_tmb_insert_backtrans(
model,
variables = character(),
transformation = mp_log
)
Arguments
- model
TMB model spec object produced using
mp_tmb_library
ormp_tmb_model_spec
.- variables
Character vector of parameters to back transform.
- transformation
A transformation object such as
mp_log
, which is the default. See the help page formp_log
for available options.
Value
A new model specification object with expressions for the
untransformed (or back transformed) parameters at the beginning of the
before
phase. The transformed version of the parameter is also
added to the defaults and are identified with a prefixed name (e.g.,
log_beta
if beta
is log transformed).