Learn R Programming

halk (version 0.0.5)

Methods to Create Hierarchical Age Length Keys for Age Assignment

Description

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.

Copy Link

Version

Install

install.packages('halk')

Monthly Downloads

215

Version

0.0.5

License

MIT + file LICENSE

Maintainer

Paul Frater

Last Published

December 3rd, 2023

Functions in halk (0.0.5)

length_data

Example length data
min_samples

Count number of length-at-age samples or age groups at each level and return those with greater than equal to the minimum desired number
%>%

Pipe operator
calc_mse_

Backend helper function to compute MSE or RMSE
ages_as_ordered

Convert ages from/to ordered factor
assign_ages

Assign ages to non-aged data based on a fitted age model
calc_stat_scores

Compute test statistics for comparing actual and estimated ages
calc_mse

Calculate mean-squared-error (MSE) and root mean-squared-error (RMSE) of estimated ages
assign_na_age

Simple function that returns NA values
adjust_ages

Adjusts data to account for plus group or minimum age
bin_lengths

Convert a vector of lengths into binned values
assign_alk_attributes

Assign associated age-length key attributes to a data.frame
check_agelen_data

Check for age/length data in the data being estimated or predicted
check_model_type

Check the model type and return standardized version
laa_data

Example length-at-age data
integral_quotient

Compute the quotient of integrals as a measure of percent error between two curves
make_alk

Make an age-length key out of length-at-age data
make_halk

Create a hierarchical age-length key (HALK)
rename_laa_cols

Simple helper function to rename size and age column names to age and length
wb_spp_data

Separate species, county, waterbody example length-at-age and length data
spp_levels

Check for species in columns and/or levels and add to levels if present