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 computationWed, 22 Dec 2010 22:45:36 +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/22/t1293057832dgu5vawlihxi2r0.htm/, Retrieved Sun, 05 May 2024 22:27:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=114616, Retrieved Sun, 05 May 2024 22:27:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact129
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [Standard Deviation-Mean Plot] [Unemployment] [2010-11-29 10:34:47] [b98453cac15ba1066b407e146608df68]
- RMP     [ARIMA Forecasting] [Unemployment] [2010-11-29 20:46:45] [b98453cac15ba1066b407e146608df68]
-   PD        [ARIMA Forecasting] [ARIMA forecast ol...] [2010-12-22 22:45:36] [8f110cf3e3846d42560df9b5835185a6] [Current]
Feedback Forum

Post a new message
Dataseries X:
31806
34571
37121
40438
43635
48064
50846
53668
58465
58618
55826
60412
62714
63332
66050
62948
59535
57298
56599
57686
57472
60463
60784
63154
64042
65460
65268
65774
66028
67104
68102
69897
72185
73538
72325
74820
74813
74533
76916
80371
81261
81557
81446
81995
79948




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 2 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114616&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114616&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114616&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 time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







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[33])
2765268-------
2865774-------
2966028-------
3067104-------
3168102-------
3269897-------
3372185-------
347353872827.66669422.829676080.27730.33430.650710.6507
357232572827.66666901.763278306.39790.42860.39970.99250.5909
367482072827.66665097.823979812.34990.28810.55610.94590.5716
377481372827.66663591.120881017.94390.31740.31680.87090.5611
387453372827.66662257.743482047.00640.35850.33650.73340.5543
397691672827.66661040.708982956.43270.21440.37070.54950.5495
408037172827.66659908.183883777.96480.08850.23220.44940.5458
418126172827.66658840.229784531.44530.07890.10320.53350.5429
428155772827.66657823.367285230.25330.08390.09130.37640.5404
438144672827.66656847.967585883.91270.09790.0950.38280.5384
448199572827.66655906.857786499.48630.09440.10830.40340.5367
457994872827.66654994.514487082.3820.16380.10370.2870.5352

\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[33]) \tabularnewline
27 & 65268 & - & - & - & - & - & - & - \tabularnewline
28 & 65774 & - & - & - & - & - & - & - \tabularnewline
29 & 66028 & - & - & - & - & - & - & - \tabularnewline
30 & 67104 & - & - & - & - & - & - & - \tabularnewline
31 & 68102 & - & - & - & - & - & - & - \tabularnewline
32 & 69897 & - & - & - & - & - & - & - \tabularnewline
33 & 72185 & - & - & - & - & - & - & - \tabularnewline
34 & 73538 & 72827.666 & 69422.8296 & 76080.2773 & 0.3343 & 0.6507 & 1 & 0.6507 \tabularnewline
35 & 72325 & 72827.666 & 66901.7632 & 78306.3979 & 0.4286 & 0.3997 & 0.9925 & 0.5909 \tabularnewline
36 & 74820 & 72827.666 & 65097.8239 & 79812.3499 & 0.2881 & 0.5561 & 0.9459 & 0.5716 \tabularnewline
37 & 74813 & 72827.666 & 63591.1208 & 81017.9439 & 0.3174 & 0.3168 & 0.8709 & 0.5611 \tabularnewline
38 & 74533 & 72827.666 & 62257.7434 & 82047.0064 & 0.3585 & 0.3365 & 0.7334 & 0.5543 \tabularnewline
39 & 76916 & 72827.666 & 61040.7089 & 82956.4327 & 0.2144 & 0.3707 & 0.5495 & 0.5495 \tabularnewline
40 & 80371 & 72827.666 & 59908.1838 & 83777.9648 & 0.0885 & 0.2322 & 0.4494 & 0.5458 \tabularnewline
41 & 81261 & 72827.666 & 58840.2297 & 84531.4453 & 0.0789 & 0.1032 & 0.5335 & 0.5429 \tabularnewline
42 & 81557 & 72827.666 & 57823.3672 & 85230.2533 & 0.0839 & 0.0913 & 0.3764 & 0.5404 \tabularnewline
43 & 81446 & 72827.666 & 56847.9675 & 85883.9127 & 0.0979 & 0.095 & 0.3828 & 0.5384 \tabularnewline
44 & 81995 & 72827.666 & 55906.8577 & 86499.4863 & 0.0944 & 0.1083 & 0.4034 & 0.5367 \tabularnewline
45 & 79948 & 72827.666 & 54994.5144 & 87082.382 & 0.1638 & 0.1037 & 0.287 & 0.5352 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114616&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[33])[/C][/ROW]
[ROW][C]27[/C][C]65268[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]28[/C][C]65774[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]29[/C][C]66028[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]30[/C][C]67104[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]31[/C][C]68102[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]32[/C][C]69897[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]33[/C][C]72185[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]34[/C][C]73538[/C][C]72827.666[/C][C]69422.8296[/C][C]76080.2773[/C][C]0.3343[/C][C]0.6507[/C][C]1[/C][C]0.6507[/C][/ROW]
[ROW][C]35[/C][C]72325[/C][C]72827.666[/C][C]66901.7632[/C][C]78306.3979[/C][C]0.4286[/C][C]0.3997[/C][C]0.9925[/C][C]0.5909[/C][/ROW]
[ROW][C]36[/C][C]74820[/C][C]72827.666[/C][C]65097.8239[/C][C]79812.3499[/C][C]0.2881[/C][C]0.5561[/C][C]0.9459[/C][C]0.5716[/C][/ROW]
[ROW][C]37[/C][C]74813[/C][C]72827.666[/C][C]63591.1208[/C][C]81017.9439[/C][C]0.3174[/C][C]0.3168[/C][C]0.8709[/C][C]0.5611[/C][/ROW]
[ROW][C]38[/C][C]74533[/C][C]72827.666[/C][C]62257.7434[/C][C]82047.0064[/C][C]0.3585[/C][C]0.3365[/C][C]0.7334[/C][C]0.5543[/C][/ROW]
[ROW][C]39[/C][C]76916[/C][C]72827.666[/C][C]61040.7089[/C][C]82956.4327[/C][C]0.2144[/C][C]0.3707[/C][C]0.5495[/C][C]0.5495[/C][/ROW]
[ROW][C]40[/C][C]80371[/C][C]72827.666[/C][C]59908.1838[/C][C]83777.9648[/C][C]0.0885[/C][C]0.2322[/C][C]0.4494[/C][C]0.5458[/C][/ROW]
[ROW][C]41[/C][C]81261[/C][C]72827.666[/C][C]58840.2297[/C][C]84531.4453[/C][C]0.0789[/C][C]0.1032[/C][C]0.5335[/C][C]0.5429[/C][/ROW]
[ROW][C]42[/C][C]81557[/C][C]72827.666[/C][C]57823.3672[/C][C]85230.2533[/C][C]0.0839[/C][C]0.0913[/C][C]0.3764[/C][C]0.5404[/C][/ROW]
[ROW][C]43[/C][C]81446[/C][C]72827.666[/C][C]56847.9675[/C][C]85883.9127[/C][C]0.0979[/C][C]0.095[/C][C]0.3828[/C][C]0.5384[/C][/ROW]
[ROW][C]44[/C][C]81995[/C][C]72827.666[/C][C]55906.8577[/C][C]86499.4863[/C][C]0.0944[/C][C]0.1083[/C][C]0.4034[/C][C]0.5367[/C][/ROW]
[ROW][C]45[/C][C]79948[/C][C]72827.666[/C][C]54994.5144[/C][C]87082.382[/C][C]0.1638[/C][C]0.1037[/C][C]0.287[/C][C]0.5352[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114616&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114616&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[33])
2765268-------
2865774-------
2966028-------
3067104-------
3168102-------
3269897-------
3372185-------
347353872827.66669422.829676080.27730.33430.650710.6507
357232572827.66666901.763278306.39790.42860.39970.99250.5909
367482072827.66665097.823979812.34990.28810.55610.94590.5716
377481372827.66663591.120881017.94390.31740.31680.87090.5611
387453372827.66662257.743482047.00640.35850.33650.73340.5543
397691672827.66661040.708982956.43270.21440.37070.54950.5495
408037172827.66659908.183883777.96480.08850.23220.44940.5458
418126172827.66658840.229784531.44530.07890.10320.53350.5429
428155772827.66657823.367285230.25330.08390.09130.37640.5404
438144672827.66656847.967585883.91270.09790.0950.38280.5384
448199572827.66655906.857786499.48630.09440.10830.40340.5367
457994872827.66654994.514487082.3820.16380.10370.2870.5352







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
340.02280.00980504574.385700
350.0384-0.00690.0083252673.1117378623.7487615.3241
360.04890.02740.01473969394.75121575547.41621255.2081
370.05740.02730.01783941551.07522167048.33091472.0898
380.06460.02340.01892908164.03752315271.47231521.6016
390.0710.05610.025116714474.86194715138.70392171.437
400.07670.10360.036356901887.773512170388.5713488.6084
410.0820.11580.046371121122.286119539230.28544420.3202
420.08690.11990.054576201272.011725835012.69945082.8154
430.09150.11830.060874275680.864630679079.51595538.8699
440.09580.12590.066884040012.592135530073.43195960.7108
450.09990.09780.069350699156.21336794163.66376065.8193

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
34 & 0.0228 & 0.0098 & 0 & 504574.3857 & 0 & 0 \tabularnewline
35 & 0.0384 & -0.0069 & 0.0083 & 252673.1117 & 378623.7487 & 615.3241 \tabularnewline
36 & 0.0489 & 0.0274 & 0.0147 & 3969394.7512 & 1575547.4162 & 1255.2081 \tabularnewline
37 & 0.0574 & 0.0273 & 0.0178 & 3941551.0752 & 2167048.3309 & 1472.0898 \tabularnewline
38 & 0.0646 & 0.0234 & 0.0189 & 2908164.0375 & 2315271.4723 & 1521.6016 \tabularnewline
39 & 0.071 & 0.0561 & 0.0251 & 16714474.8619 & 4715138.7039 & 2171.437 \tabularnewline
40 & 0.0767 & 0.1036 & 0.0363 & 56901887.7735 & 12170388.571 & 3488.6084 \tabularnewline
41 & 0.082 & 0.1158 & 0.0463 & 71121122.2861 & 19539230.2854 & 4420.3202 \tabularnewline
42 & 0.0869 & 0.1199 & 0.0545 & 76201272.0117 & 25835012.6994 & 5082.8154 \tabularnewline
43 & 0.0915 & 0.1183 & 0.0608 & 74275680.8646 & 30679079.5159 & 5538.8699 \tabularnewline
44 & 0.0958 & 0.1259 & 0.0668 & 84040012.5921 & 35530073.4319 & 5960.7108 \tabularnewline
45 & 0.0999 & 0.0978 & 0.0693 & 50699156.213 & 36794163.6637 & 6065.8193 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114616&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]34[/C][C]0.0228[/C][C]0.0098[/C][C]0[/C][C]504574.3857[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]35[/C][C]0.0384[/C][C]-0.0069[/C][C]0.0083[/C][C]252673.1117[/C][C]378623.7487[/C][C]615.3241[/C][/ROW]
[ROW][C]36[/C][C]0.0489[/C][C]0.0274[/C][C]0.0147[/C][C]3969394.7512[/C][C]1575547.4162[/C][C]1255.2081[/C][/ROW]
[ROW][C]37[/C][C]0.0574[/C][C]0.0273[/C][C]0.0178[/C][C]3941551.0752[/C][C]2167048.3309[/C][C]1472.0898[/C][/ROW]
[ROW][C]38[/C][C]0.0646[/C][C]0.0234[/C][C]0.0189[/C][C]2908164.0375[/C][C]2315271.4723[/C][C]1521.6016[/C][/ROW]
[ROW][C]39[/C][C]0.071[/C][C]0.0561[/C][C]0.0251[/C][C]16714474.8619[/C][C]4715138.7039[/C][C]2171.437[/C][/ROW]
[ROW][C]40[/C][C]0.0767[/C][C]0.1036[/C][C]0.0363[/C][C]56901887.7735[/C][C]12170388.571[/C][C]3488.6084[/C][/ROW]
[ROW][C]41[/C][C]0.082[/C][C]0.1158[/C][C]0.0463[/C][C]71121122.2861[/C][C]19539230.2854[/C][C]4420.3202[/C][/ROW]
[ROW][C]42[/C][C]0.0869[/C][C]0.1199[/C][C]0.0545[/C][C]76201272.0117[/C][C]25835012.6994[/C][C]5082.8154[/C][/ROW]
[ROW][C]43[/C][C]0.0915[/C][C]0.1183[/C][C]0.0608[/C][C]74275680.8646[/C][C]30679079.5159[/C][C]5538.8699[/C][/ROW]
[ROW][C]44[/C][C]0.0958[/C][C]0.1259[/C][C]0.0668[/C][C]84040012.5921[/C][C]35530073.4319[/C][C]5960.7108[/C][/ROW]
[ROW][C]45[/C][C]0.0999[/C][C]0.0978[/C][C]0.0693[/C][C]50699156.213[/C][C]36794163.6637[/C][C]6065.8193[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114616&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114616&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
340.02280.00980504574.385700
350.0384-0.00690.0083252673.1117378623.7487615.3241
360.04890.02740.01473969394.75121575547.41621255.2081
370.05740.02730.01783941551.07522167048.33091472.0898
380.06460.02340.01892908164.03752315271.47231521.6016
390.0710.05610.025116714474.86194715138.70392171.437
400.07670.10360.036356901887.773512170388.5713488.6084
410.0820.11580.046371121122.286119539230.28544420.3202
420.08690.11990.054576201272.011725835012.69945082.8154
430.09150.11830.060874275680.864630679079.51595538.8699
440.09580.12590.066884040012.592135530073.43195960.7108
450.09990.09780.069350699156.21336794163.66376065.8193



Parameters (Session):
par1 = 12 ; par2 = 2.0 ; par3 = 1 ; par4 = 0 ; par5 = 6 ; par6 = 0 ; par7 = 1 ; par8 = 0 ; par9 = 0 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 2.0 ; par3 = 1 ; par4 = 0 ; par5 = 6 ; par6 = 0 ; par7 = 1 ; par8 = 0 ; 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')