estimate_weights: Shortcut weights

View source: R/g3_iterative_shortcut.R

estimate_weightsR Documentation

Shortcut weights

Description

Estimates the weights for gadget3 likelihood components using shortcut (ie not iterative re-weighting) methods

Usage

estimate_weights(model, params)

Arguments

model

A gadget3 model of class 'g3_cpp' or 'g3_r'

params

A gadget3 parameter dataframe

Details

This function attempts to estimate the weights of gadget3 likelihood components. The shortcut weights are calculated by taking the inverse of the residual variance. How the residual variance is calculated depends on the type of likelihood distribution, i.e., whether it is a catch or abundance distribution. The residual variance calculations are performed by the helper functions 'estimate_weights_cdist' (catch distributions) and 'estimate_weights_adist' (abundance distributions)


gadget-framework/gadgetutils documentation built on Nov. 11, 2024, 6:25 p.m.