get_rec_ci: Get recruitment information for a cohort from two models with...

View source: R/utils-get-rec-ci.R

get_rec_ciR Documentation

Get recruitment information for a cohort from two models with an CI envelope % difference calculation

Description

Get recruitment information for a cohort from two models with an CI envelope % difference calculation

Usage

get_rec_ci(model1, model2, yr, digits = 3, perc_digits = 0)

Arguments

model1

A model object, created with create_rds_file()

model2

A model object, created with create_rds_file()

yr

The cohort (year) to extract

digits

Number of decimal points to round values to

perc_digits

Number of decimal points to round percentages to

probs

The 3-vector of probabilities to be passes to the quantile() function.

Value

A list of length 3: Item 1 is a vector of the model1 recruitment lower, median, upper, and size of credible interval (env_diff column). Item 2 is the same type object for model2, and item 3 is the ratio of the model2 env_diff divided by that of model1 as a percentage.


pacific-hake/hake-assessment documentation built on July 21, 2024, 8:19 a.m.