Package: gadgetutils 0.0.0.9000

William Butler

gadgetutils: Tools to create and maintain gadget3 models

A collection of functions to aid (1) setting up and maintaining gadget3 models, (2) optimising, analysing, and running diagnostics on gadget3 models.

Authors:William Butler [aut, cre], Bjarki Thor Elvarsson [aut], Jamie Lentin [aut], Mikko Vihtakari [aut], Marine and Freshwater Research Institute [cph]

gadgetutils_0.0.0.9000.tar.gz
gadgetutils_0.0.0.9000.zip(r-4.7-any)gadgetutils_0.0.0.9000.zip(r-4.6-any)gadgetutils_0.0.0.9000.zip(r-4.5-any)
gadgetutils_0.0.0.9000.tgz(r-4.6-any)gadgetutils_0.0.0.9000.tgz(r-4.5-any)
gadgetutils_0.0.0.9000.tar.gz(r-4.7-any)gadgetutils_0.0.0.9000.tar.gz(r-4.6-any)
gadgetutils_0.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
gadgetutils/json (API)

# Install 'gadgetutils' in R:
install.packages('gadgetutils', repos = c('https://gadget-framework.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gadget-framework/gadgetutils/issues

On CRAN:

Conda:

2.41 score 13 scripts 36 exports 30 dependencies

Last updated from:3667a2167a. Checks:4 NOTE, 2 OK, 3 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develNOTE163
source / vignettesOK199
linux-releaseNOTE177
macos-releaseNOTE185
macos-oldrelNOTE221
windows-develERROR168
windows-releaseERROR151
windows-oldrelERROR145
wasm-releaseOK87

Exports:%>%add_g3_attributesbind_fitbind_fit_componentsestimate_weightsestimate_weights_adistestimate_weights_cdisteval_boundedextract_year_stepg3_add_parscaleg3_datag3_fitg3_init_guessg3_iterativeg3_iterative_default_groupingg3_iterative_setupg3_jitterg3_leaveoutg3_lik_outg3_optimg3_retrog3_sensitivityg3_stock_nameg3_update_weightsinit_abundinit_sdjitter_paramsmodel_actionsmohnrhoread.g3.paramstock_renewalstock_speciestabulate_SSvalue_from_boundswrite.g3.filewrite.g3.param

Dependencies:backportsbroomclicpp11digestdplyrgadget3genericsgluelatticelifecyclemagrittrMatrixmodelrpillarpkgconfigpurrrR6RcppRcppEigenrlangstringistringrtibbletidyrtidyselectTMButf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Add gadget3 attributes to an existing data frameadd_g3_attributes
Combine multiple gadget.fit objectsbind_fit
Combine individual elements from multiple gadget.fit objectsbind_fit_components
Internal function to check whether g3_optim has succeeded or crashed. Used by the gadgetutils g3_* functions.check_params_out
Shortcut weightsestimate_weights
Residual variance for abundance distributionsestimate_weights_adist
Residual variance for catch distributionsestimate_weights_cdist
Convert normalised bounded form back to valueeval_bounded
Extracts year and step columnsextract_year_step
Added parscale to a parameter template. No longer needed.g3_add_parscale
Aggregate count data from a data frame to gadget3g3_data
Build output summary suitable for feeding into gadgetplotsg3_fit
Set initial guesses for parameter values in g3_cpp parameter templateg3_init_guess
Iterative re-weightingg3_iterative g3_iterative_default_grouping
Initial parameters for iterative re-weightingg3_iterative_setup
Jitter analysisg3_jitter
Leave-one-out analysis.g3_leaveout
Likelihood summary for a model rung3_lik_out
Wrapper for stats::optim that returns the g3_cpp parameter template with optimised valuesg3_optim
Analytical retrospectiveg3_retro
Sensitivity analysisg3_sensitivity
Extract parts from stock nameg3_stock_name
Updates weights for second stage of iterative re-weightingg3_update_weights
Generate parameterised g3a_initial_abundinit_abund
Generate parameterised initial conditionsinit_sd
Creates a jittered g3_tmb parameter templatejitter_params
Generate a standard set of model actionsmodel_actions
Generate parameterised g3a_initial_abundmohnrho
Reads a file from write.g3.file to an object. Now depreciated, using RData files for read/write.read.g3.param
Wrapper for g3_optim. This is an internal function used by the g3_* functionsrun_g3_optim
Generate paramerterised stock renewal factorstock_renewal
Extract species name from stockstock_species
Calculates likelihood component scores, including scores normalised by the minimum valuetabulate_SS
Convert value into it's normalised form for use with bounded()value_from_bounds
Writes an object to a file, typically just used within gadgetutils g3_ functionswrite.g3.file
A wrapper for write.g3.file that formats a gadget3 TMB parameter data.frame for writing to filewrite.g3.param