get_likelihoods: Get likelihood values for a model object the begin with 'ans'

View source: R/utils-get-likelihoods.R

get_likelihoodsR Documentation

Get likelihood values for a model object the begin with 'ans'

Description

Get likelihood values for a model object the begin with 'ans'

Usage

get_likelihoods(report)

Arguments

report

The object returned by the report() function of the returned object of the minimizer.

Value

A list of the likelihoods whose names begin with 'ans'. Add these in pacifichakemse.cpp at the end as a REPORT

Examples

## Not run: 
obj <- MakeADFun(d, p, DLL = "pacifichakemse", silent = FALSE)
report <- obj$report()
get_likelihoods(report)

## End(Not run)

pacific-hake/pacifichakemse documentation built on June 11, 2024, 4:07 a.m.