calc_mse {halk} | R Documentation |
These functions will calculate MSE and RMSE for estimated ages produced by
assign_ages
. Output is specific to each level used by the
age-length key to assign ages
calc_mse(data, age_col = "age")
calc_rmse(data, age_col = "age")
data |
A data.frame as created by |
age_col |
Character. Name of the age column in |
Numeric value for estimated ages with no levels or a data.frame with a MSE or RMSE value for each level used to fit ages
wae_data <- spp_data[spp_data$spp == "walleye", ]
alk <- make_alk(wae_data)
wae_est_age <- assign_ages(wae_data, alk)
calc_mse(wae_est_age)
calc_rmse(wae_est_age)