Skip to contents

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 or mp_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 for mp_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).