View source: R/g3_iterative_shortcut.R
estimate_weights | R Documentation |
Estimates the weights for gadget3 likelihood components using shortcut (ie not iterative re-weighting) methods
estimate_weights(model, params)
model |
A gadget3 model of class 'g3_cpp' or 'g3_r' |
params |
A gadget3 parameter dataframe |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.