helper function to modify simulation settings for random effects
helper function to modify simulation settings for random effects
This modifies the TMB object in place (beware!) Ultimately this will allow terms to be a vector of term names, with a matching val vector to specify the behaviour for each term
set_simcodes(g, val ="zero", terms ="ALL")
Arguments
g: a TMB object
val: a legal setting for sim codes ("zero", "random", or "fix")