Package: halk 0.0.5

Paul Frater

halk: Methods to Create Hierarchical Age Length Keys for Age Assignment

Provides methods for implementing hierarchical age length keys to estimate fish ages from lengths using data borrowing. Users can create hierarchical age length keys and use them to assign ages given length.

Authors:Paul Frater [aut, cre]

halk_0.0.5.tar.gz
halk_0.0.5.tar.gz(r-4.5-noble)halk_0.0.5.tar.gz(r-4.4-noble)
halk_0.0.5.tgz(r-4.4-emscripten)halk_0.0.5.tgz(r-4.3-emscripten)
halk.pdf |halk.html
halk/json (API)

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

Peer review:

Datasets:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.00 score 3 scripts 203 downloads 10 exports 21 dependencies

Last updated 12 months agofrom:029c2facb1. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 29 2024
R-4.5-linuxOKOct 29 2024

Exports:%>%assign_agesbin_lengthscalc_chi_scorecalc_ks_scorecalc_msecalc_rmseintegral_quotientmake_alkmake_halk

Dependencies:clicpp11dplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Introduction to the halk

Rendered fromhalk.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2023-09-23
Started: 2023-02-13

Readme and manuals

Help Manual

Help pageTopics
Adjusts data to account for plus group or minimum ageadjust_ages adjust_plus_min_ages adjust_plus_min_ages_df
Convert ages from/to ordered factorages_as_integer ages_as_ordered ages_as_ordered_factor
Assign ages to non-aged data based on a fitted age modelassign_ages
Assign associated age-length key attributes to a data.frameassign_alk_attributes
Simple function that returns NA valuesassign_na_age
Convert a vector of lengths into binned valuesbin_lengths
Calculate mean-squared-error (MSE) and root mean-squared-error (RMSE) of estimated agescalc_mse calc_rmse
Backend helper function to compute MSE or RMSEcalc_mse_
Compute test statistics for comparing actual and estimated agescalc_chi_score calc_ks_score calc_stat_scores
Check for age/length data in the data being estimated or predictedcheck_agelen_data check_age_data check_length_data
Check the model type and return standardized versioncheck_model_type
Compute the quotient of integrals as a measure of percent error between two curvesintegral_quotient
Example length-at-age datalaa_data laa_data_few_ages laa_data_low_age_n laa_data_low_n spp_data spp_data_few_ages spp_data_low_age_n spp_data_low_n
Example length datalength_data spp_length_data
Make an age-length key out of length-at-age datamake_alk
Create a hierarchical age-length key (HALK)make_halk
Count number of length-at-age samples or age groups at each level and return those with greater than equal to the minimum desired numbermin_age_groups min_count_laa_data min_samples
Simple helper function to rename size and age column names to age and lengthrename_laa_cols
Check for species in columns and/or levels and add to levels if presentadd_spp_level is_spp_in_data is_spp_in_levels rm_spp_level spp_level spp_levels
Separate species, county, waterbody example length-at-age and length datawb_spp_data wb_spp_laa_data wb_spp_length_data