【发布时间】:2018-01-04 14:25:24
【问题描述】:
我正在尝试使用 forecast.holtwinters 函数,当我尝试运行它时:
dftimeseriesforecast <- forecast.HoltWinters(data, h=65)
我收到此错误:
错误:找不到函数“forecast.HoltWinters”
我也试过这个:
dftimeseriesforecast= forecast::forecast.HoltWinters(data, h=65)
但我收到此错误消息:
错误:“forecast.HoltWinters”不是从“namespace:forecast”导出的对象
我使用以下代码查看预测包中的函数列表:
ls("package:forecast")
这会返回:
[1] “%>%” “准确度” “Acf” “arfima” “Arima” “arima.errors” “arimaorder” “auto.arima”
[9] “autolayer” “baggedETS” “bats” “bizdays” “bld.mbb.bootstrap” “BoxCox” “BoxCox.lambda” “Ccf”
[17] "checkresiduals" "croston" "CV" "CVar" "dm.test" "dshw" "easter" "ets"
[25] “findfrequency” “forecast” “forecast.ets” “fourier” “fourierf” “gas” “geom_forecast” “GeomForecast”
[33] “getResponse” “ggAcf” “ggCcf” “gghistogram” “gglagchull” “gglagplot” “ggmonthplot” “ggPacf”
[41] “ggseasonplot” “ggsubseriesplot” “ggtaperedacf” “ggtaperedpacf” “ggtsdisplay” “gold” “holt” “hw”
[49] “InvBoxCox” “is.acf” “is.Arima” “is.baggedETS” “is.bats” “is.constant” “is.ets” “is.forecast”
[57] “is.mforecast” “is.nnetar” “is.nnetarmodels” “is.splineforecast” “is.stlm” “ma” “meanf” “monthdays”
[65] “msts” “na.interp” “naive” “ndiffs” “nnetar” “nsdiffs” “Pacf” “剩余”
[73] “rwf” “seasadj” “seasonal” “seasonaldummy” “seasonaldummyf” “seasonplot” “ses” “sindexf”
[81] “snaive” “splinef” “StatForecast” “stlf” “stlm” “taperedacf” “taperedpacf” “taylor”
[89] “tbats” “tbats.components” “thetaf” “trendcycle” “tsclean” “tsCV” “tsdisplay” “tslm”
[97] “tsoutliers” “wineind” “woolyrnq”
有人知道发生了什么吗?我以前用过这个,没有任何问题。我正在使用预测版本 8.1。
【问题讨论】:
标签: r forecasting holtwinters