小编Tom*_*hor的帖子

使用预测包从预测中获取预测点估计和间隔

我需要一种方法来打印预测值.

我需要打印深蓝色线值,如果可能的话,还需要打印下图中灰色区域的值.

打印该值或打印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))
Run Code Online (Sandbox Code Playgroud)

情节

plot r prediction forecasting

1
推荐指数
1
解决办法
1501
查看次数

标签 统计

forecasting ×1

plot ×1

prediction ×1

r ×1