【发布时间】:2016-03-21 15:13:14
【问题描述】:
我需要一种打印预测值的方法。
我需要打印深蓝色的线值,如果可能的话,打印下图中灰色区域的值。
打印该值或打印 2019 年预测值的代码是什么?
library(forecast)
timese <- ts(WWWusage, start = c(2008, 1), end = c(2016, 1), frequency = 12)
### Structural Time Series Model
# Trend likelihood
fit <- StructTS(timese, "trend")
### Make the plot
plot(forecast(fit, level = c(70, 90)),
sub = "Confidence Interval 70% ~ 90% or Determined by user",
ylab = "Y Axis Variable",
main = "Forecast Linear Structural Model @ Trend-Wise",
ylim = c(0, 400))
【问题讨论】:
标签: r plot prediction forecasting