Methods to Create Hierarchical Age Length Keys for Age Assignment


[Up] [Top]

Documentation for package ‘halk’ version 0.0.5

Help Pages

add_spp_level Check for species in columns and/or levels and add to levels if present
adjust_ages Adjusts data to account for plus group or minimum age
adjust_plus_min_ages Adjusts data to account for plus group or minimum age
adjust_plus_min_ages_df Adjusts data to account for plus group or minimum age
ages_as_integer Convert ages from/to ordered factor
ages_as_ordered Convert ages from/to ordered factor
ages_as_ordered_factor Convert ages from/to ordered factor
assign_ages Assign ages to non-aged data based on a fitted age model
assign_alk_attributes Assign associated age-length key attributes to a data.frame
assign_na_age Simple function that returns NA values
bin_lengths Convert a vector of lengths into binned values
calc_chi_score Compute test statistics for comparing actual and estimated ages
calc_ks_score 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
calc_mse_ Backend helper function to compute MSE or RMSE
calc_rmse Calculate mean-squared-error (MSE) and root mean-squared-error (RMSE) of estimated ages
calc_stat_scores Compute test statistics for comparing actual and estimated ages
check_agelen_data Check for age/length data in the data being estimated or predicted
check_age_data Check for age/length data in the data being estimated or predicted
check_length_data Check for age/length data in the data being estimated or predicted
check_model_type Check the model type and return standardized version
integral_quotient Compute the quotient of integrals as a measure of percent error between two curves
is_spp_in_data Check for species in columns and/or levels and add to levels if present
is_spp_in_levels Check for species in columns and/or levels and add to levels if present
laa_data Example length-at-age data
laa_data_few_ages Example length-at-age data
laa_data_low_age_n Example length-at-age data
laa_data_low_n Example length-at-age data
length_data Example length data
make_alk Make an age-length key out of length-at-age data
make_halk Create a hierarchical age-length key (HALK)
min_age_groups 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
min_count_laa_data 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
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
rename_laa_cols Simple helper function to rename size and age column names to age and length
rm_spp_level Check for species in columns and/or levels and add to levels if present
spp_data Example length-at-age data
spp_data_few_ages Example length-at-age data
spp_data_low_age_n Example length-at-age data
spp_data_low_n Example length-at-age data
spp_length_data Example length data
spp_level Check for species in columns and/or levels and add to levels if present
spp_levels Check for species in columns and/or levels and add to levels if present
wb_spp_data Separate species, county, waterbody example length-at-age and length data
wb_spp_laa_data Separate species, county, waterbody example length-at-age and length data
wb_spp_length_data Separate species, county, waterbody example length-at-age and length data