Skip to contents

This function processes the TMB std and reshapes them into a structured tibble for easier analysis and manipulation.

Usage

reshape_tmb_estimates(obj, sdreport = NULL, opt = NULL, parameter_names)

Arguments

obj

An object returned from TMB::MakeADFun().

sdreport

An object of the sdreport class as returned from TMB::sdreport().

opt

An object returned from an optimizer, typically from stats::nlminb(), used to fit a TMB model.

parameter_names

A character vector of parameter names. This is used to identify the parameters in the std object.

Value

A tibble containing the reshaped estimates (i.e., parameters and derived quantities).