Print Regime Detection Results
Usage
# S3 method for class 'regimes'
print(x, ...)Arguments
- x
[
regimes]
Regime detection result fromdetect_regimes().- ...
Additional arguments passed to the generic print method.
Examples
set.seed(123)
ts_data <- stats::arima.sim(list(order = c(1, 1, 0), ar = 0.6), n = 200)
regimes <- detect_regimes(
data = ts_data,
method = "threshold",
sensitivity = "medium"
)
print(regimes)
#> # A tibble: 201 × 9
#> value time change id type magnitude confidence stability score
#> * <dbl> <dbl> <lgl> <int> <chr> <dbl> <lgl> <chr> <dbl>
#> 1 0 1 FALSE 1 none 0 NA Initial NA
#> 2 0.623 2 TRUE 2 threshold_me… 0.25 NA Unstable 0.225
#> 3 0.441 3 FALSE 2 none 0 NA Transiti… 0.35
#> 4 2.12 4 FALSE 2 none 0 NA Transiti… 0.475
#> 5 3.62 5 FALSE 2 none 0 NA Transiti… 0.6
#> 6 2.56 6 FALSE 2 none 0 NA Transiti… 0.725
#> 7 2.62 7 FALSE 2 none 0 NA Transiti… 0.6
#> 8 2.19 8 FALSE 2 none 0 NA Transiti… 0.475
#> 9 0.858 9 FALSE 2 none 0 NA Transiti… 0.35
#> 10 -0.158 10 FALSE 2 none 0 NA Unstable 0.225
#> # ℹ 191 more rows