Closed Alexej36 closed 1 year ago
Why do you want to? damped is a logical argument, so 0 and 1 are not correct inputs.
Because TRUE/FALSE and 1/0 are often used interchangeably E.g. in auto.arima it works both ways:
set.seed(1)
my_ts <- rnorm(36,0,1) + (1:36)
auto.arima(my_ts, stationary = 1)
auto.arima(my_ts, stationary = TRUE)
Just because it sometimes works doesn't mean we should always allow it.
Hi,
a perhaps cosmetic issue, but one cannot pass 1 or 0 to the "damped" argument in the ets() function
The last two lines generate
Error in if (damped) { : missing value where TRUE/FALSE needed