calc_var_adjust | R Documentation |
Function developed for U.S. west coast Sablefish assessment in 2019 to tune discard data or mean body weight data which are common inputs for U.S. west coast groundfish assessments but as of 2023 have not often had any data weighting method applied to them.
calc_var_adjust(data, type = c("CV", "sd"))
data |
Either the "discard" or "mnwgt" elements of the list
returned by |
type |
Either "CV" or "sd" specifying the type of control file variance
adjustment, where the SS3 options are |
The calculation is based on sd_out = sqrt(mean(Obs - Exp)^2)). Added sd is calculated as sd_out - sd_in where sd_in is the mean of the input standard deviations (possibly including existing variance adjustments). When a CV adjustment is required, the sd_out is converted to CV_out by dividing by the mean of the expected values and with the added CV calculated as CV_out - CV_in.
A table of input and estimated uncertainty values in units of both CV and sd including the following:
fleet
is the fleet number
mean_out
is the mean of the expected values
mean_in
is the mean of the observed values
CV_in
is the mean input CV
sd_in
is the mean input SD values (which may include variance
adjustments already)
sd_out
is the SD of the observed relative to the expected values,
calculated as described above
CV_out
is the CV of the observed relative to the expected, calculated
as described above
added
is the value that could be added to any existing value in the
"Input variance adjustments factors" section of the control file.
type
is the data type code used in "Input variance adjustments factors"
Kelli F. Johnson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.