Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationThu, 16 Dec 2010 13:57:53 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/16/t1292507788s71ubgunafoocm9.htm/, Retrieved Fri, 03 May 2024 14:40:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110930, Retrieved Fri, 03 May 2024 14:40:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact130
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [] [2008-12-08 19:22:39] [d2d412c7f4d35ffbf5ee5ee89db327d4]
- RMP     [ARIMA Forecasting] [] [2010-12-16 13:57:53] [40b262140b988d7b8204c4955f8b7651] [Current]
Feedback Forum

Post a new message
Dataseries X:
655362
873127
1107897
1555964
1671159
1493308
2957796
2638691
1305669
1280496
921900
867888
652586
913831
1108544
1555827
1699283
1509458
3268975
2425016
1312703
1365498
934453
775019
651142
843192
1146766
1652601
1465906
1652734
2922334
2702805
1458956
1410363
1019279
936574
708917
885295
1099663
1576220
1487870
1488635
2882530
2677026
1404398
1344370
936865
872705
628151
953712
1160384
1400618
1661511
1495347
2918786
2775677
1407026
1370199
964526
850851
683118
847224
1073256
1514326
1503734
1507712
2865698
2788128
1391596
1366378
946295
859626




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time30 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 30 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110930&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]30 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110930&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110930&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time30 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Univariate ARIMA Extrapolation Forecast
timeY[t]F[t]95% LB95% UBp-value(H0: Y[t] = F[t])P(F[t]>Y[t-1])P(F[t]>Y[t-s])P(F[t]>Y[62])
50953712-------
511160384-------
521400618-------
531661511-------
541495347-------
552918786-------
562775677-------
571407026-------
581370199-------
59964526-------
60850851-------
61683118-------
62847224-------
6310732561159099.6015980509.44871337689.75430.17310.99970.49440.9997
6415143261523596.52251338377.25991708815.7850.460910.90341
6515037341557650.15011371939.24321743361.05710.28470.67630.13651
6615077121554326.60381368578.57351740074.63410.31140.70330.73311
6728656982913999.69512728248.85813099750.53220.305110.47991
6827881282730719.73372544968.68442916470.78310.27230.07720.31761
6913915961426520.21331240769.14791612271.27860.356200.58151
7013663781381180.21831195429.15171566931.28490.43790.45620.54611
71946295980796.3149795045.24821166547.38160.357900.56820.9206
72859626887521.8229701770.75631073272.88960.38420.26760.65060.6647

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast \tabularnewline
time & Y[t] & F[t] & 95% LB & 95% UB & p-value(H0: Y[t] = F[t]) & P(F[t]>Y[t-1]) & P(F[t]>Y[t-s]) & P(F[t]>Y[62]) \tabularnewline
50 & 953712 & - & - & - & - & - & - & - \tabularnewline
51 & 1160384 & - & - & - & - & - & - & - \tabularnewline
52 & 1400618 & - & - & - & - & - & - & - \tabularnewline
53 & 1661511 & - & - & - & - & - & - & - \tabularnewline
54 & 1495347 & - & - & - & - & - & - & - \tabularnewline
55 & 2918786 & - & - & - & - & - & - & - \tabularnewline
56 & 2775677 & - & - & - & - & - & - & - \tabularnewline
57 & 1407026 & - & - & - & - & - & - & - \tabularnewline
58 & 1370199 & - & - & - & - & - & - & - \tabularnewline
59 & 964526 & - & - & - & - & - & - & - \tabularnewline
60 & 850851 & - & - & - & - & - & - & - \tabularnewline
61 & 683118 & - & - & - & - & - & - & - \tabularnewline
62 & 847224 & - & - & - & - & - & - & - \tabularnewline
63 & 1073256 & 1159099.6015 & 980509.4487 & 1337689.7543 & 0.1731 & 0.9997 & 0.4944 & 0.9997 \tabularnewline
64 & 1514326 & 1523596.5225 & 1338377.2599 & 1708815.785 & 0.4609 & 1 & 0.9034 & 1 \tabularnewline
65 & 1503734 & 1557650.1501 & 1371939.2432 & 1743361.0571 & 0.2847 & 0.6763 & 0.1365 & 1 \tabularnewline
66 & 1507712 & 1554326.6038 & 1368578.5735 & 1740074.6341 & 0.3114 & 0.7033 & 0.7331 & 1 \tabularnewline
67 & 2865698 & 2913999.6951 & 2728248.8581 & 3099750.5322 & 0.3051 & 1 & 0.4799 & 1 \tabularnewline
68 & 2788128 & 2730719.7337 & 2544968.6844 & 2916470.7831 & 0.2723 & 0.0772 & 0.3176 & 1 \tabularnewline
69 & 1391596 & 1426520.2133 & 1240769.1479 & 1612271.2786 & 0.3562 & 0 & 0.5815 & 1 \tabularnewline
70 & 1366378 & 1381180.2183 & 1195429.1517 & 1566931.2849 & 0.4379 & 0.4562 & 0.5461 & 1 \tabularnewline
71 & 946295 & 980796.3149 & 795045.2482 & 1166547.3816 & 0.3579 & 0 & 0.5682 & 0.9206 \tabularnewline
72 & 859626 & 887521.8229 & 701770.7563 & 1073272.8896 & 0.3842 & 0.2676 & 0.6506 & 0.6647 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110930&T=1

[TABLE]
[ROW][C]Univariate ARIMA Extrapolation Forecast[/C][/ROW]
[ROW][C]time[/C][C]Y[t][/C][C]F[t][/C][C]95% LB[/C][C]95% UB[/C][C]p-value(H0: Y[t] = F[t])[/C][C]P(F[t]>Y[t-1])[/C][C]P(F[t]>Y[t-s])[/C][C]P(F[t]>Y[62])[/C][/ROW]
[ROW][C]50[/C][C]953712[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]1160384[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]1400618[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]53[/C][C]1661511[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]54[/C][C]1495347[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]55[/C][C]2918786[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]56[/C][C]2775677[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]1407026[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]58[/C][C]1370199[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]59[/C][C]964526[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]850851[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]683118[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]62[/C][C]847224[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]63[/C][C]1073256[/C][C]1159099.6015[/C][C]980509.4487[/C][C]1337689.7543[/C][C]0.1731[/C][C]0.9997[/C][C]0.4944[/C][C]0.9997[/C][/ROW]
[ROW][C]64[/C][C]1514326[/C][C]1523596.5225[/C][C]1338377.2599[/C][C]1708815.785[/C][C]0.4609[/C][C]1[/C][C]0.9034[/C][C]1[/C][/ROW]
[ROW][C]65[/C][C]1503734[/C][C]1557650.1501[/C][C]1371939.2432[/C][C]1743361.0571[/C][C]0.2847[/C][C]0.6763[/C][C]0.1365[/C][C]1[/C][/ROW]
[ROW][C]66[/C][C]1507712[/C][C]1554326.6038[/C][C]1368578.5735[/C][C]1740074.6341[/C][C]0.3114[/C][C]0.7033[/C][C]0.7331[/C][C]1[/C][/ROW]
[ROW][C]67[/C][C]2865698[/C][C]2913999.6951[/C][C]2728248.8581[/C][C]3099750.5322[/C][C]0.3051[/C][C]1[/C][C]0.4799[/C][C]1[/C][/ROW]
[ROW][C]68[/C][C]2788128[/C][C]2730719.7337[/C][C]2544968.6844[/C][C]2916470.7831[/C][C]0.2723[/C][C]0.0772[/C][C]0.3176[/C][C]1[/C][/ROW]
[ROW][C]69[/C][C]1391596[/C][C]1426520.2133[/C][C]1240769.1479[/C][C]1612271.2786[/C][C]0.3562[/C][C]0[/C][C]0.5815[/C][C]1[/C][/ROW]
[ROW][C]70[/C][C]1366378[/C][C]1381180.2183[/C][C]1195429.1517[/C][C]1566931.2849[/C][C]0.4379[/C][C]0.4562[/C][C]0.5461[/C][C]1[/C][/ROW]
[ROW][C]71[/C][C]946295[/C][C]980796.3149[/C][C]795045.2482[/C][C]1166547.3816[/C][C]0.3579[/C][C]0[/C][C]0.5682[/C][C]0.9206[/C][/ROW]
[ROW][C]72[/C][C]859626[/C][C]887521.8229[/C][C]701770.7563[/C][C]1073272.8896[/C][C]0.3842[/C][C]0.2676[/C][C]0.6506[/C][C]0.6647[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110930&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110930&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Univariate ARIMA Extrapolation Forecast
timeY[t]F[t]95% LB95% UBp-value(H0: Y[t] = F[t])P(F[t]>Y[t-1])P(F[t]>Y[t-s])P(F[t]>Y[62])
50953712-------
511160384-------
521400618-------
531661511-------
541495347-------
552918786-------
562775677-------
571407026-------
581370199-------
59964526-------
60850851-------
61683118-------
62847224-------
6310732561159099.6015980509.44871337689.75430.17310.99970.49440.9997
6415143261523596.52251338377.25991708815.7850.460910.90341
6515037341557650.15011371939.24321743361.05710.28470.67630.13651
6615077121554326.60381368578.57351740074.63410.31140.70330.73311
6728656982913999.69512728248.85813099750.53220.305110.47991
6827881282730719.73372544968.68442916470.78310.27230.07720.31761
6913915961426520.21331240769.14791612271.27860.356200.58151
7013663781381180.21831195429.15171566931.28490.43790.45620.54611
71946295980796.3149795045.24821166547.38160.357900.56820.9206
72859626887521.8229701770.75631073272.88960.38420.26760.65060.6647







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
630.0786-0.074107369123922.070500
640.062-0.00610.040185942586.57323727533254.321961053.5278
650.0608-0.03460.03832906951246.19933454005918.28158770.7914
660.061-0.030.03622172921288.02033133734760.715855979.771
670.0325-0.01660.03232333053753.30492973598559.233754530.7121
680.03470.0210.03043295709035.09363027283638.543655020.7564
690.0664-0.02450.02951219700672.58592769057500.549752621.8348
700.0686-0.01070.0272219105665.77342450313521.202649500.6416
710.0966-0.03520.02811190340728.99122310316544.290348065.7523
720.1068-0.03140.0284778176937.74482157102583.635746444.6185

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
63 & 0.0786 & -0.0741 & 0 & 7369123922.0705 & 0 & 0 \tabularnewline
64 & 0.062 & -0.0061 & 0.0401 & 85942586.5732 & 3727533254.3219 & 61053.5278 \tabularnewline
65 & 0.0608 & -0.0346 & 0.0383 & 2906951246.1993 & 3454005918.281 & 58770.7914 \tabularnewline
66 & 0.061 & -0.03 & 0.0362 & 2172921288.0203 & 3133734760.7158 & 55979.771 \tabularnewline
67 & 0.0325 & -0.0166 & 0.0323 & 2333053753.3049 & 2973598559.2337 & 54530.7121 \tabularnewline
68 & 0.0347 & 0.021 & 0.0304 & 3295709035.0936 & 3027283638.5436 & 55020.7564 \tabularnewline
69 & 0.0664 & -0.0245 & 0.0295 & 1219700672.5859 & 2769057500.5497 & 52621.8348 \tabularnewline
70 & 0.0686 & -0.0107 & 0.0272 & 219105665.7734 & 2450313521.2026 & 49500.6416 \tabularnewline
71 & 0.0966 & -0.0352 & 0.0281 & 1190340728.9912 & 2310316544.2903 & 48065.7523 \tabularnewline
72 & 0.1068 & -0.0314 & 0.0284 & 778176937.7448 & 2157102583.6357 & 46444.6185 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110930&T=2

[TABLE]
[ROW][C]Univariate ARIMA Extrapolation Forecast Performance[/C][/ROW]
[ROW][C]time[/C][C]% S.E.[/C][C]PE[/C][C]MAPE[/C][C]Sq.E[/C][C]MSE[/C][C]RMSE[/C][/ROW]
[ROW][C]63[/C][C]0.0786[/C][C]-0.0741[/C][C]0[/C][C]7369123922.0705[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]64[/C][C]0.062[/C][C]-0.0061[/C][C]0.0401[/C][C]85942586.5732[/C][C]3727533254.3219[/C][C]61053.5278[/C][/ROW]
[ROW][C]65[/C][C]0.0608[/C][C]-0.0346[/C][C]0.0383[/C][C]2906951246.1993[/C][C]3454005918.281[/C][C]58770.7914[/C][/ROW]
[ROW][C]66[/C][C]0.061[/C][C]-0.03[/C][C]0.0362[/C][C]2172921288.0203[/C][C]3133734760.7158[/C][C]55979.771[/C][/ROW]
[ROW][C]67[/C][C]0.0325[/C][C]-0.0166[/C][C]0.0323[/C][C]2333053753.3049[/C][C]2973598559.2337[/C][C]54530.7121[/C][/ROW]
[ROW][C]68[/C][C]0.0347[/C][C]0.021[/C][C]0.0304[/C][C]3295709035.0936[/C][C]3027283638.5436[/C][C]55020.7564[/C][/ROW]
[ROW][C]69[/C][C]0.0664[/C][C]-0.0245[/C][C]0.0295[/C][C]1219700672.5859[/C][C]2769057500.5497[/C][C]52621.8348[/C][/ROW]
[ROW][C]70[/C][C]0.0686[/C][C]-0.0107[/C][C]0.0272[/C][C]219105665.7734[/C][C]2450313521.2026[/C][C]49500.6416[/C][/ROW]
[ROW][C]71[/C][C]0.0966[/C][C]-0.0352[/C][C]0.0281[/C][C]1190340728.9912[/C][C]2310316544.2903[/C][C]48065.7523[/C][/ROW]
[ROW][C]72[/C][C]0.1068[/C][C]-0.0314[/C][C]0.0284[/C][C]778176937.7448[/C][C]2157102583.6357[/C][C]46444.6185[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110930&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110930&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
630.0786-0.074107369123922.070500
640.062-0.00610.040185942586.57323727533254.321961053.5278
650.0608-0.03460.03832906951246.19933454005918.28158770.7914
660.061-0.030.03622172921288.02033133734760.715855979.771
670.0325-0.01660.03232333053753.30492973598559.233754530.7121
680.03470.0210.03043295709035.09363027283638.543655020.7564
690.0664-0.02450.02951219700672.58592769057500.549752621.8348
700.0686-0.01070.0272219105665.77342450313521.202649500.6416
710.0966-0.03520.02811190340728.99122310316544.290348065.7523
720.1068-0.03140.0284778176937.74482157102583.635746444.6185



Parameters (Session):
par1 = 10 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = 1 ; par7 = 0 ; par8 = 2 ; par9 = 0 ; par10 = FALSE ;
Parameters (R input):
par1 = 10 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = 1 ; par7 = 0 ; par8 = 2 ; par9 = 0 ; par10 = FALSE ;
R code (references can be found in the software module):
par1 <- as.numeric(par1) #cut off periods
par2 <- as.numeric(par2) #lambda
par3 <- as.numeric(par3) #degree of non-seasonal differencing
par4 <- as.numeric(par4) #degree of seasonal differencing
par5 <- as.numeric(par5) #seasonal period
par6 <- as.numeric(par6) #p
par7 <- as.numeric(par7) #q
par8 <- as.numeric(par8) #P
par9 <- as.numeric(par9) #Q
if (par10 == 'TRUE') par10 <- TRUE
if (par10 == 'FALSE') par10 <- FALSE
if (par2 == 0) x <- log(x)
if (par2 != 0) x <- x^par2
lx <- length(x)
first <- lx - 2*par1
nx <- lx - par1
nx1 <- nx + 1
fx <- lx - nx
if (fx < 1) {
fx <- par5
nx1 <- lx + fx - 1
first <- lx - 2*fx
}
first <- 1
if (fx < 3) fx <- round(lx/10,0)
(arima.out <- arima(x[1:nx], order=c(par6,par3,par7), seasonal=list(order=c(par8,par4,par9), period=par5), include.mean=par10, method='ML'))
(forecast <- predict(arima.out,par1))
(lb <- forecast$pred - 1.96 * forecast$se)
(ub <- forecast$pred + 1.96 * forecast$se)
if (par2 == 0) {
x <- exp(x)
forecast$pred <- exp(forecast$pred)
lb <- exp(lb)
ub <- exp(ub)
}
if (par2 != 0) {
x <- x^(1/par2)
forecast$pred <- forecast$pred^(1/par2)
lb <- lb^(1/par2)
ub <- ub^(1/par2)
}
if (par2 < 0) {
olb <- lb
lb <- ub
ub <- olb
}
(actandfor <- c(x[1:nx], forecast$pred))
(perc.se <- (ub-forecast$pred)/1.96/forecast$pred)
bitmap(file='test1.png')
opar <- par(mar=c(4,4,2,2),las=1)
ylim <- c( min(x[first:nx],lb), max(x[first:nx],ub))
plot(x,ylim=ylim,type='n',xlim=c(first,lx))
usr <- par('usr')
rect(usr[1],usr[3],nx+1,usr[4],border=NA,col='lemonchiffon')
rect(nx1,usr[3],usr[2],usr[4],border=NA,col='lavender')
abline(h= (-3:3)*2 , col ='gray', lty =3)
polygon( c(nx1:lx,lx:nx1), c(lb,rev(ub)), col = 'orange', lty=2,border=NA)
lines(nx1:lx, lb , lty=2)
lines(nx1:lx, ub , lty=2)
lines(x, lwd=2)
lines(nx1:lx, forecast$pred , lwd=2 , col ='white')
box()
par(opar)
dev.off()
prob.dec <- array(NA, dim=fx)
prob.sdec <- array(NA, dim=fx)
prob.ldec <- array(NA, dim=fx)
prob.pval <- array(NA, dim=fx)
perf.pe <- array(0, dim=fx)
perf.mape <- array(0, dim=fx)
perf.mape1 <- array(0, dim=fx)
perf.se <- array(0, dim=fx)
perf.mse <- array(0, dim=fx)
perf.mse1 <- array(0, dim=fx)
perf.rmse <- array(0, dim=fx)
for (i in 1:fx) {
locSD <- (ub[i] - forecast$pred[i]) / 1.96
perf.pe[i] = (x[nx+i] - forecast$pred[i]) / forecast$pred[i]
perf.se[i] = (x[nx+i] - forecast$pred[i])^2
prob.dec[i] = pnorm((x[nx+i-1] - forecast$pred[i]) / locSD)
prob.sdec[i] = pnorm((x[nx+i-par5] - forecast$pred[i]) / locSD)
prob.ldec[i] = pnorm((x[nx] - forecast$pred[i]) / locSD)
prob.pval[i] = pnorm(abs(x[nx+i] - forecast$pred[i]) / locSD)
}
perf.mape[1] = abs(perf.pe[1])
perf.mse[1] = abs(perf.se[1])
for (i in 2:fx) {
perf.mape[i] = perf.mape[i-1] + abs(perf.pe[i])
perf.mape1[i] = perf.mape[i] / i
perf.mse[i] = perf.mse[i-1] + perf.se[i]
perf.mse1[i] = perf.mse[i] / i
}
perf.rmse = sqrt(perf.mse1)
bitmap(file='test2.png')
plot(forecast$pred, pch=19, type='b',main='ARIMA Extrapolation Forecast', ylab='Forecast and 95% CI', xlab='time',ylim=c(min(lb),max(ub)))
dum <- forecast$pred
dum[1:par1] <- x[(nx+1):lx]
lines(dum, lty=1)
lines(ub,lty=3)
lines(lb,lty=3)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Univariate ARIMA Extrapolation Forecast',9,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'Y[t]',1,header=TRUE)
a<-table.element(a,'F[t]',1,header=TRUE)
a<-table.element(a,'95% LB',1,header=TRUE)
a<-table.element(a,'95% UB',1,header=TRUE)
a<-table.element(a,'p-value
(H0: Y[t] = F[t])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-1])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-s])',1,header=TRUE)
mylab <- paste('P(F[t]>Y[',nx,sep='')
mylab <- paste(mylab,'])',sep='')
a<-table.element(a,mylab,1,header=TRUE)
a<-table.row.end(a)
for (i in (nx-par5):nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.row.end(a)
}
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(x[nx+i],4))
a<-table.element(a,round(forecast$pred[i],4))
a<-table.element(a,round(lb[i],4))
a<-table.element(a,round(ub[i],4))
a<-table.element(a,round((1-prob.pval[i]),4))
a<-table.element(a,round((1-prob.dec[i]),4))
a<-table.element(a,round((1-prob.sdec[i]),4))
a<-table.element(a,round((1-prob.ldec[i]),4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Univariate ARIMA Extrapolation Forecast Performance',7,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'% S.E.',1,header=TRUE)
a<-table.element(a,'PE',1,header=TRUE)
a<-table.element(a,'MAPE',1,header=TRUE)
a<-table.element(a,'Sq.E',1,header=TRUE)
a<-table.element(a,'MSE',1,header=TRUE)
a<-table.element(a,'RMSE',1,header=TRUE)
a<-table.row.end(a)
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(perc.se[i],4))
a<-table.element(a,round(perf.pe[i],4))
a<-table.element(a,round(perf.mape1[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse1[i],4))
a<-table.element(a,round(perf.rmse[i],4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')