TMBAIC: Calculate marginal AIC for a fitted model

View source: R/TMBAIC.R

TMBAICR Documentation

Calculate marginal AIC for a fitted model

Description

TMBAIC calculates AIC for a given model fit

Usage

TMBAIC(opt, p = 2, n = Inf)

Arguments

opt

the output from nlminb or optim

p

the penalty on additional fixed effects (default=2, for AIC)

n

the sample size, for use in AICc calculation (default=Inf, for which AICc=AIC)

Value

AIC, where a parsimonious model has a AIC relative to other candidate models


James-Thorson/VAST documentation built on Feb. 9, 2025, 9:05 a.m.