All functions |
|
---|---|
Call GADGET |
|
Call paramin |
|
Deprecated functions |
|
Fix data headers in Gadget input files |
|
Gadget fit |
|
Removed functions |
|
|
Gadget parameters |
Gadget Phasing |
|
Analytical retrospective |
|
Retro fit |
|
Write the changes to the model into a model variant directory |
|
|
Old style gadget file input and output (mostly deprecated) |
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:catchdist |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:catchinkilos |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:catchstat |
|
Discard named component |
|
this function removes named fleet components |
|
this function removes named likelihood components |
|
this function removes named print components |
|
Evaluate a gadget model |
|
Recognised GADGET file types and their quirks |
|
Gadget fit |
|
Iterative reweighting for Gadget models An implementation of the iterative reweigthing of likelihood components in gadget. It analyzes a given gadget model and, after a series of optimisations where each likelihood component is heavily weigthed, suggests a weigthing for the components based on the respective variance. If one (or more) components, other than understocking and penalty, are 0 then the gadget optimisation with the final weights will not be completed. In Taylor et. al an objective reweighting scheme for likelihood components is described for cod in Icelandic waters. The authors nota that the issue of component weighting has been discussed for some time, as the data sources have different natural scales (e.g g vs. kg) that should not affect the outcome. A simple heuristic, where the weights are the inverse of the initial sums of squares for the respective component resulting in an initials score equal to the number of components, is therfor often used. This has the intutitive advantage of all components being normalised. There is however a drawback to this since the component scores, given the initial parametrisation, are most likely not equally far from their respective optima resulting in sub-optimal weighting. The iterative reweighting heuristic tackles this problem by optimising each component separately in order to determine the lowest possible value for each component. This is then used to determine the final weights. The resoning for this approach is as follows: Conceptually the likelihood components can be thought of as residual sums of squares, and as such their variance can be esimated by dividing the SS by the degrees of freedom. The optimal weighting strategy is the inverse of the variance. Here the iteration starts with assigning the inverse SS as the initial weight, that is the initial score of each component when multiplied with the weight is 1. Then an optimisation run for each component with the intial score for that component set to 10000. After the optimisation run the inverse of the resulting SS is multiplied by the effective number of datapoints and used as the final weight for that particular component. The effective number of datapoints is used as a proxy for the degrees of freedom is determined from the number of non-zero datapoints. This is viewed as satisfactory proxy when the dataset is large, but for smaller datasets this could be a gross overestimate. In particular, if the surveyindices are weigthed on their own while the yearly recruitment is esimated they could be overfitted. If there are two surveys within the year Taylor et. al suggest that the corresponding indices from each survey are weigthed simultaneously in order to make sure that there are at least two measurement for each yearly recruit, this is done through component grouping which is implemented. Another approach, which is also implemented, for say a single survey fleet the weight for each index component is estimated from a model of the form $$\log(I_{lts}) = \mu + Y_t + \lambda_l + \Sigma_s + \epsilon_{lts}$$ where the residual term, \(\epsilon_{lts}\), is independent normal with variance \(\sigma_{ls}^2\). The inverse of the estimated variance from the above model as the weights between the surveyindices. After these weights have been determined all surveyindices are weighted simultaneously. |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:likelihoodprinter |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:likelihoodsummaryprinter |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:migpenalty |
|
Evaluate a gadget model |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:boundlike |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:predatoroverprinter |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:predatorpreyprinter |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:predatorprinter |
|
|
Gadget projection function |
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:recaptures |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:recstat |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:stockdist |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:stockfullprinter |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:stockpreyfullprinter |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:stockpreyprinter |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:stockprinter |
|
https://hafro.github.io/gadget2/userguide/chap-print.html#sec:stockstdprinter |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:stomach |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:surveydistribution |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:surveyindices |
|
http://hafro.github.io/gadget/docs/userguide/chap-like.html#sec:understocking |
|
Update gadget components |
|
Update gadget fleet components in a fleet file |
|
Update gadget likelihood components in a likelihood file |
|
Update gadget print components in a print file |
|
Update comonents of a gadgetstock object |
|
Update gadget time components in a time file |
|
Construct a data-only gadget file |
|
Construct a new gadgetfile S3 object |
|
Create a gadgetfleet object |
|
Create/update a fleet component with name |
|
Create a gadgetlikelihood object |
|
Wrapper to choose a component by name |
|
Wrapper to choose a component by name |
|
Create a gadgetprint object |
|
Create a gadgetstock object |
|
Create a gadgettime object |
|
gadget.variant.dir to unix line endings |
|
Make gadget printfile |
|
Parse a GADGET formulae string |
|
plot gadget fit |
|
Print given gadgetfile to stdout |
|
Read gadget input file, return gadgetfile S3 class representing file |
|
Read gadget lik.out |
|
Gadget results |
|
Read gadget printfiles |
|
Replace variables in formulae |
|
Prey suitability |
|
Turn R expression into GADGET formulae string |
|
Append setting to variant directories |
|
von B formula |
|
Write gadgetfile to disk, including any dependant files, and update the mainfile |