tidyverts / feasts

Feature Extraction And Statistics for Time Series
https://feasts.tidyverts.org/
291 stars 23 forks source link

Rogue column created by feature_set() #153

Open robjhyndman opened 1 year ago

robjhyndman commented 1 year ago

Column ...26 contains only missing values

library(feasts)
#> Loading required package: fabletools
tsibbledata::PBS %>% 
  features(Cost, features = feature_set("feasts"))
#> Warning in optimise(lambda_coef_var, c(lower, upper), x = x, .period =
#> max(.period, : NA/Inf replaced by maximum positive value

#> Warning in optimise(lambda_coef_var, c(lower, upper), x = x, .period =
#> max(.period, : NA/Inf replaced by maximum positive value

#> Warning in optimise(lambda_coef_var, c(lower, upper), x = x, .period =
#> max(.period, : NA/Inf replaced by maximum positive value

#> Warning in optimise(lambda_coef_var, c(lower, upper), x = x, .period =
#> max(.period, : NA/Inf replaced by maximum positive value
#> Error in ar.burg.default(x, aic = aic, order.max = order.max, na.action = na.action,  : 
#>   zero-variance series
#> Error in ar.burg.default(x, aic = aic, order.max = order.max, na.action = na.action,  : 
#>   zero-variance series
#> Warning: `n_flat_spots()` was deprecated in feasts 0.1.5.
#> Please use `longest_flat_spot()` instead.
#> New names:
#> • `` -> `...26`
#> Warning: 2 errors (1 unique) encountered for feature 7
#> [2] subscript out of bounds
#> # A tibble: 336 × 53
#>    Concession  Type  ATC1  ATC2  trend…¹ seaso…² seaso…³ seaso…⁴ spiki…⁵ linea…⁶
#>    <chr>       <chr> <chr> <chr>   <dbl>   <dbl>   <dbl>   <dbl>   <dbl>   <dbl>
#>  1 Concession… Co-p… A     A01     0.837   0.899       9       7 1.44e10 -4.88e4
#>  2 Concession… Co-p… A     A02     0.973   0.937      11       6 1.25e20  8.51e7
#>  3 Concession… Co-p… A     A03     0.978   0.845      11       7 4.58e14 -2.24e6
#>  4 Concession… Co-p… A     A04     0.944   0.843       9       6 1.24e14  1.67e6
#>  5 Concession… Co-p… A     A05     0.960   0.870      11       6 8.95e12  6.10e5
#>  6 Concession… Co-p… A     A06     0.960   0.951      11       6 3.82e13  1.53e6
#>  7 Concession… Co-p… A     A07     0.971   0.910      11       6 9.77e14  4.10e6
#>  8 Concession… Co-p… A     A09     0.942   0.891      11       6 1.31e13  9.19e5
#>  9 Concession… Co-p… A     A10     0.975   0.917      11       6 9.97e18  3.83e7
#> 10 Concession… Co-p… A     A11     0.982   0.898      11       7 2.82e14  3.71e5
#> # … with 326 more rows, 43 more variables: curvature <dbl>, stl_e_acf1 <dbl>,
#> #   stl_e_acf10 <dbl>, acf1 <dbl>, acf10 <dbl>, diff1_acf1 <dbl>,
#> #   diff1_acf10 <dbl>, diff2_acf1 <dbl>, diff2_acf10 <dbl>, season_acf1 <dbl>,
#> #   pacf5 <dbl>, diff1_pacf5 <dbl>, diff2_pacf5 <dbl>, season_pacf <dbl>,
#> #   zero_run_mean <dbl>, nonzero_squared_cv <dbl>, zero_start_prop <dbl>,
#> #   zero_end_prop <dbl>, lambda_guerrero <dbl>, ...26 <dbl>, kpss_stat <dbl>,
#> #   kpss_pvalue <dbl>, pp_stat <dbl>, pp_pvalue <dbl>, ndiffs <int>, …

Created on 2022-10-08 with reprex v2.0.2