fn_fyield {Morefi}
20 May 2024
fn_fyield.Rmd
Fillet yield
Description
The function calculates the fillet yield by dividing a defined weight
reference point bm
by the mean, lower, and upper confidence
interval of 95% (IC95%) of the estimated fillet weight, respectively.
These values are obtained from the list items
l_intervals$CI
returned by the function
Morefi::fn_intervals()
.
If the analyzed regression has fillet weight as an independent variable, then values are calculated. An “if statement” is written for this propose.
Fillet yield was calculated for a sequence of the independent variable (including minimum and maximum values).
Inside the function, the mean (Ymean), lower (Ymin), and upper (Ymax) CI95% are stored in a table (Table_Y).
The function requires defining:
- i: An integer value that indicates which regression analysis to use.
- bm: An integer value used as a benchmark.
- df: A data frame with landed weights for each category.
Seealso: fn_intervals(): customized for the present package mutate(): from the package dplyr (version 1.0.10)