trend: Trend Agreement Metrics

View source: R/skill.R

trendR Documentation

Trend Agreement Metrics

Description

Calculates correlation measures between observed and predicted stock trends.

Usage

trend(obs, hat)

Arguments

obs

Numeric vector of observed time series (e.g., biomass index)

hat

Numeric vector of predicted time series

Value

Data.frame containing:

  • pearson: Pearson correlation coefficient

  • spearman: Spearman's rank correlation

  • direction: Proportion of matching inter-annual change directions

Examples

obs_trend <- cumsum(rnorm(20))
pred_trend <- obs_trend + rnorm(20, sd=0.5)
trend(obs_trend, pred_trend)

laurieKell/FLCandy documentation built on April 17, 2025, 5:23 p.m.