pspforecast

Shellfish toxicity (PSP) forecast serving package

For the current 2025 Maine PSP predictions, click here

Requirements

Installation

remotes::install_github("BigelowLab/pspforecast")

Reading the forecast database

Variables:

2025 Results

Metrics

## # A tibble: 1 × 11
##      tp    fp    tn    fn accuracy cl_accuracy  brier   f_1 precision sensitivity specificity
##   <int> <int> <int> <int>    <dbl>       <dbl>  <dbl> <dbl>     <dbl>       <dbl>       <dbl>
## 1    49    38   581    32    0.671         0.9 0.0663 0.583     0.563       0.605       0.939

2024 Season Results

Metrics

## # A tibble: 1 × 11
##      tp    fp    tn    fn accuracy cl_accuracy  brier   f_1 precision sensitivity specificity
##   <int> <int> <int> <int>    <dbl>       <dbl>  <dbl> <dbl>     <dbl>       <dbl>       <dbl>
## 1     2     4   397     7    0.717       0.973 0.0168 0.267     0.333       0.222       0.990

2023 Season Results

Confusion Matrix

Probability of Closure-level Toxicity vs Measured Toxicity

Metrics

## # A tibble: 1 × 11
##      tp    fp    tn    fn accuracy cl_accuracy    brier   f_1 precision sensitivity specificity
##   <int> <int> <int> <int>    <dbl>       <dbl>    <dbl> <dbl>     <dbl>       <dbl>       <dbl>
## 1     0     0   550     0    0.993           1 0.000120   NaN       NaN         NaN           1

2022 Season Results

Confusion Matrix

Probability of Closure-level Toxicity vs Measured Toxicity

Metrics

## # A tibble: 1 × 11
##      tp    fp    tn    fn accuracy cl_accuracy  brier   f_1 precision sensitivity specificity
##   <int> <int> <int> <int>    <dbl>       <dbl>  <dbl> <dbl>     <dbl>       <dbl>       <dbl>
## 1    16    20   603    12    0.799       0.951 0.0298   0.5     0.444       0.571       0.968

Timing of initial closure-level predictions

2021 Season Results

Confusion Matrix

Probability of Closure-level Toxicity vs Measured Toxicity

Metrics

## # A tibble: 1 × 11
##      tp    fp    tn    fn accuracy cl_accuracy   brier   f_1 precision sensitivity specificity
##   <int> <int> <int> <int>    <dbl>       <dbl>   <dbl> <dbl>     <dbl>       <dbl>       <dbl>
## 1     2     3   463     0    0.938       0.994 0.00456 0.571       0.4           1       0.994

Closure-level accuracy

Timing of initial closure-level predictions

Possible manuscript plot(s)

Last Updated

## [1] "2025-08-29"