Insert Basic Transformations of Model Variables
Source:R/tmb_model_editors.R
mp_tmb_insert_trans.Rd
Insert Basic Transformations of Model Variables
Usage
mp_tmb_insert_trans(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 variables to 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 transformed
variables at the end of the simulation loop. The transformed variables
are identified with a prefixed name (e.g., log_incidence
if incidence
is log transformed).