tmb_params: Extract Parameter Vector to Pass to a TMB Function

View source: R/tmbutils.R

tmb_paramsR Documentation

Extract Parameter Vector to Pass to a TMB Function

Description

Get all of the parameters from a flexmodel in a vector that is ready to be passed to a TMB AD objective function, gradient function, hessian function, simulate function, report function.

Usage

tmb_params(model)

Arguments

model

flexmodel

Details

Currently this includes params and if spec_ver_gt('0.1.0') it also includes time-varying multipliers in model$timevar$piece_wise$schedule$last_tv_mult. If spec_ver_gt('0.1.2'), only the parameters to be optimized are returned.


bbolker/McMasterPandemic documentation built on Aug. 25, 2024, 6:35 p.m.