pspforecast

Shellfish toxicity (PSP) forecast serving package

For the current 2026 Maine PSP predictions, click here

Requirements

Installation

remotes::install_github("BigelowLab/pspforecast")

Reading the forecast database

Variables:

Metrics:

Overall Results (2021-2025 seasons combined)

Predictions evaluated:

## [1] 2634

Metrics:

## # A tibble: 1 × 11
##      tp    fp    tn    fn accuracy cl_accuracy brier   f_1 precision sensitivity
##   <int> <int> <int> <int>    <dbl>       <dbl> <dbl> <dbl>     <dbl>       <dbl>
## 1    69    65  2449    51    0.806       0.956 0.028 0.543     0.515       0.575
## # ℹ 1 more variable: specificity <dbl>

2025 Results

Predictions evaluated

## [1] 700

Metrics

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

2024 Season Results

Predictions evaluated

## [1] 410

Metrics

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

2023 Season Results

Confusion Matrix

Probability of Closure-level Toxicity vs Measured Toxicity

Predictions evaluated

## [1] 401

Metrics

## # A tibble: 1 × 11
##      tp    fp    tn    fn accuracy cl_accuracy brier   f_1 precision sensitivity
##   <int> <int> <int> <int>    <dbl>       <dbl> <dbl> <dbl>     <dbl>       <dbl>
## 1     0     0   401     0     0.99           1     0   NaN       NaN         NaN
## # ℹ 1 more variable: specificity <dbl>

2022 Season Results

Confusion Matrix

Probability of Closure-level Toxicity vs Measured Toxicity

Predictions evaluated

## [1] 651

Metrics

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

Timing of initial closure-level predictions

2021 Season Results

Confusion Matrix

Probability of Closure-level Toxicity vs Measured Toxicity

Predictions evaluated

## [1] 468

Metrics

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

Closure-level accuracy

Timing of initial closure-level predictions

Last Updated

## [1] "2026-02-17"