Calculates Constancy (C), Contingency (M), and Predictability (P) metrics from Colwell (1974) for seasonally varying environmental data.
colwell_stats(time_series, dates, n_states = 11)
| time_series | A |
|---|---|
| dates | An vector of class |
| n_states | is a |
A data.frame.
Diego Barneche and Scott Burgess.
library(envPred) data(sst) data(npp) n_states <- 11 fct <- envPred:::colwell_stats fct(sst$time_series, sst$dates, n_states)#> colwell_c colwell_m colwell_p #> 1 0.03052538 0.4583633 0.4888887fct(npp$time_series, npp$dates, n_states)#> colwell_c colwell_m colwell_p #> 1 0.1131317 0.3111578 0.4242895