當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


R nottem 諾丁漢平均每月氣溫,1920 年至 1939 年

R語言 nottem 位於 datasets 包(package)。

說明

包含諾丁漢城堡 20 年平均氣溫(華氏度)的時間序列對象。

用法

nottem

例子

require(stats); require(graphics)
nott <- window(nottem, end = c(1936,12))
fit <- arima(nott, order = c(1,0,0), list(order = c(2,1,0), period = 12))
nott.fore <- predict(fit, n.ahead = 36)
ts.plot(nott, nott.fore$pred, nott.fore$pred+2*nott.fore$se,
        nott.fore$pred-2*nott.fore$se, gpars = list(col = c(1,1,4,4)))

來源

Anderson, O. D. (1976) 時間序列分析和預測:Box-Jenkins 方法。巴特沃斯。 R係列

相關用法


注:本文由純淨天空篩選整理自R-devel大神的英文原創作品 Average Monthly Temperatures at Nottingham, 1920–1939。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。