Skip to content

Commit

Permalink
fix(plot_indices): changed calculation of CIs for models using cv to …
Browse files Browse the repository at this point in the history
…measure error
  • Loading branch information
Schiano-NOAA committed Dec 20, 2024
1 parent 0e26bb4 commit e31d777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/plot_indices.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ plot_indices <- function(
# Final data set for plotting
indices2 <- indices |>
dplyr::mutate(
estimate_lower = dplyr::case_when(err_val ~ (estimate - uncertainty),
estimate_lower = dplyr::case_when(err_val ~ estimate - ((estimate * uncertainty) * 1.96),
TRUE ~ (estimate - 1.96 * uncertainty)),
estimate_upper = dplyr::case_when(err_val ~ (estimate + uncertainty),
estimate_upper = dplyr::case_when(err_val ~ estimate + ((estimate * uncertainty) * 1.96),
TRUE ~ (estimate + 1.96 * uncertainty)),
fleet = as.character(fleet),
year = as.numeric(year)
Expand Down

0 comments on commit e31d777

Please sign in to comment.