state | R Documentation |
Evaluates performance of stock status classification (Overfished/Healthy).
state(obs, hat)
obs |
Numeric vector of observed stock status values |
hat |
Numeric vector of predicted status values |
Data.frame containing:
accuracy: Overall classification accuracy
precision: Precision for Overfished classification
recall: Recall for Overfished classification
Status determined using threshold at 1 (B/BMSY). Check variable names in function code.
obs_status <- runif(100, 0.5, 1.5)
pred_status <- obs_status * exp(rnorm(100, sd=0.2))
state(obs_status, pred_status)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.