anki_ts_decompose: Decompose time series into trend, seasonal, and residual
Description
Uses classical decomposition on review data.
Usage
anki_ts_decompose(
path = NULL,
profile = NULL,
metric = "reviews",
frequency = 7
)
Value
A decomposition object (or list with components)
Arguments
- path
Path to collection.anki2 (auto-detected if NULL)
- profile
Profile name (first profile if NULL)
- metric
Metric to decompose: "reviews", "retention", or "time"
- frequency
Seasonal frequency (default 7 for weekly pattern)
Examples
Run this codeif (FALSE) {
dec <- anki_ts_decompose()
plot(dec)
}
Run the code above in your browser using DataLab