fix_pars: fix_pars

View source: R/tmb_helper_funs.R

fix_parsR Documentation

fix_pars

Description

TMB helper function this function returns a list of factors used in the map argument of the MakeADFun function

Usage

fix_pars(
  par_list,
  pars_to_exclude,
  vec_pars_to_adjust = NULL,
  vec_elements_to_exclude = NULL
)

Arguments

par_list

a named list that you give to the par argument in the MakeADFun

pars_to_exclude

a vector of strings with names of parmeters you want to FIX in the objective object.

vec_pars_to_adjust

a vector string of parameter labels that we want to exclude certain elements.

vec_elements_to_exclude

a list with number of elements = length(vec_pars_to_adjust). each list element contains a vector of elements that we want to exclude from estimation.

Value

a list of factors used in the MakeADFun function

Author(s)

C.Marsh


Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.