3

I have been trying to perform the horse approach for finding the best model to run on the time series data but when I run ts_backtesting function, there is a message in console that

Error in ts_backtesting(x) : could not find function "ts_backtesting"

Can anyone please help me know why I am getting such error and how to avoid that.

UseR10085
  • 7,120
  • 3
  • 24
  • 54
  • Welcome to SO. Please see [How to make a great R reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). `ts_backtesting` function is available in `TSstudio` package. Have you installed and subsequently called the `TSstudio` package in R. – UseR10085 Feb 10 '20 at 12:12

1 Answers1

0

I checked the latest version of the package, didn't find this function anymore https://cran.r-project.org/web/packages/TSstudio/index.html, instead, a function called 'train_model' can be used to do a similar thing.

data葱
  • 61
  • 1
  • 5