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 computationFri, 24 Dec 2010 13:40:00 +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/24/t1293198068wzyl2zre77fsml2.htm/, Retrieved Tue, 30 Apr 2024 00:08:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=114948, Retrieved Tue, 30 Apr 2024 00:08:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
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] [] [2010-12-07 17:45:49] [0175b38674e1402e67841c9c82e4a5a3]
-   PD          [ARIMA Forecasting] [] [2010-12-24 13:40:00] [c2e23af56713b360851e64c7775b3f2b] [Current]
Feedback Forum

Post a new message
Dataseries X:
13.193
15.234
14.718
16.961
13.945
15.876
16.226
18.316
16.748
17.904
17.209
18.950
17.225
18.710
17.236
18.687
17.580
19.568
17.381
19.580
17.260
18.661
15.658
18.674
15.908
17.475
17.725
19.562
16.368
19.555
17.743
19.867
15.703
19.324
18.162
19.074
15.323
19.704
18.375
18.352
13.927
17.795
16.761
18.902
16.239
19.158
18.279
15.698
16.239
18.431
18.414
19.801
14.995
18.706
18.232
19.409
16.263
19.017
20.298
19.891
15.203
17.845
17.502
18.532
15.737
17.770
17.224
17.601
14.940
18.507
17.635
19.392
15.699
17.661
18.243
19.643
15.770
17.344
17.229
17.322
16.152
17.919
16.918
18.114
16.308
17.759
16.021
17.952
15.954
17.762
16.610
17.751
15.458
18.106
15.990
15.349
13.185
15.409
16.007
16.633
14.800
15.974
15.693




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114948&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114948&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114948&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'George Udny Yule' @ 72.249.76.132







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[91])
8716.021-------
8817.952-------
8915.954-------
9017.762-------
9116.61-------
9217.75118.107716.249719.96570.35340.94290.56520.9429
9315.45815.544113.538417.54980.46650.01550.34440.1488
9418.10617.766415.709819.82290.37310.98610.50170.8648
9515.9916.879714.792418.96710.20170.12480.60.6
9615.34918.193315.921520.46510.00710.97130.64860.914
9713.18515.458113.128517.78770.02790.53660.50.1662
9815.40917.78715.421820.15220.02440.99990.39580.8353
9916.00716.9714.577719.36230.21510.89950.7890.616
10016.63318.232215.774720.68970.10110.9620.98930.9021
10114.815.449312.962417.93620.30440.17540.96280.1802
10215.97417.806115.296420.31590.07620.99060.96940.8249
10315.69317.007114.478919.53520.15420.78840.78090.6209

\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[91]) \tabularnewline
87 & 16.021 & - & - & - & - & - & - & - \tabularnewline
88 & 17.952 & - & - & - & - & - & - & - \tabularnewline
89 & 15.954 & - & - & - & - & - & - & - \tabularnewline
90 & 17.762 & - & - & - & - & - & - & - \tabularnewline
91 & 16.61 & - & - & - & - & - & - & - \tabularnewline
92 & 17.751 & 18.1077 & 16.2497 & 19.9657 & 0.3534 & 0.9429 & 0.5652 & 0.9429 \tabularnewline
93 & 15.458 & 15.5441 & 13.5384 & 17.5498 & 0.4665 & 0.0155 & 0.3444 & 0.1488 \tabularnewline
94 & 18.106 & 17.7664 & 15.7098 & 19.8229 & 0.3731 & 0.9861 & 0.5017 & 0.8648 \tabularnewline
95 & 15.99 & 16.8797 & 14.7924 & 18.9671 & 0.2017 & 0.1248 & 0.6 & 0.6 \tabularnewline
96 & 15.349 & 18.1933 & 15.9215 & 20.4651 & 0.0071 & 0.9713 & 0.6486 & 0.914 \tabularnewline
97 & 13.185 & 15.4581 & 13.1285 & 17.7877 & 0.0279 & 0.5366 & 0.5 & 0.1662 \tabularnewline
98 & 15.409 & 17.787 & 15.4218 & 20.1522 & 0.0244 & 0.9999 & 0.3958 & 0.8353 \tabularnewline
99 & 16.007 & 16.97 & 14.5777 & 19.3623 & 0.2151 & 0.8995 & 0.789 & 0.616 \tabularnewline
100 & 16.633 & 18.2322 & 15.7747 & 20.6897 & 0.1011 & 0.962 & 0.9893 & 0.9021 \tabularnewline
101 & 14.8 & 15.4493 & 12.9624 & 17.9362 & 0.3044 & 0.1754 & 0.9628 & 0.1802 \tabularnewline
102 & 15.974 & 17.8061 & 15.2964 & 20.3159 & 0.0762 & 0.9906 & 0.9694 & 0.8249 \tabularnewline
103 & 15.693 & 17.0071 & 14.4789 & 19.5352 & 0.1542 & 0.7884 & 0.7809 & 0.6209 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114948&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[91])[/C][/ROW]
[ROW][C]87[/C][C]16.021[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]88[/C][C]17.952[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]89[/C][C]15.954[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]90[/C][C]17.762[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]91[/C][C]16.61[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]92[/C][C]17.751[/C][C]18.1077[/C][C]16.2497[/C][C]19.9657[/C][C]0.3534[/C][C]0.9429[/C][C]0.5652[/C][C]0.9429[/C][/ROW]
[ROW][C]93[/C][C]15.458[/C][C]15.5441[/C][C]13.5384[/C][C]17.5498[/C][C]0.4665[/C][C]0.0155[/C][C]0.3444[/C][C]0.1488[/C][/ROW]
[ROW][C]94[/C][C]18.106[/C][C]17.7664[/C][C]15.7098[/C][C]19.8229[/C][C]0.3731[/C][C]0.9861[/C][C]0.5017[/C][C]0.8648[/C][/ROW]
[ROW][C]95[/C][C]15.99[/C][C]16.8797[/C][C]14.7924[/C][C]18.9671[/C][C]0.2017[/C][C]0.1248[/C][C]0.6[/C][C]0.6[/C][/ROW]
[ROW][C]96[/C][C]15.349[/C][C]18.1933[/C][C]15.9215[/C][C]20.4651[/C][C]0.0071[/C][C]0.9713[/C][C]0.6486[/C][C]0.914[/C][/ROW]
[ROW][C]97[/C][C]13.185[/C][C]15.4581[/C][C]13.1285[/C][C]17.7877[/C][C]0.0279[/C][C]0.5366[/C][C]0.5[/C][C]0.1662[/C][/ROW]
[ROW][C]98[/C][C]15.409[/C][C]17.787[/C][C]15.4218[/C][C]20.1522[/C][C]0.0244[/C][C]0.9999[/C][C]0.3958[/C][C]0.8353[/C][/ROW]
[ROW][C]99[/C][C]16.007[/C][C]16.97[/C][C]14.5777[/C][C]19.3623[/C][C]0.2151[/C][C]0.8995[/C][C]0.789[/C][C]0.616[/C][/ROW]
[ROW][C]100[/C][C]16.633[/C][C]18.2322[/C][C]15.7747[/C][C]20.6897[/C][C]0.1011[/C][C]0.962[/C][C]0.9893[/C][C]0.9021[/C][/ROW]
[ROW][C]101[/C][C]14.8[/C][C]15.4493[/C][C]12.9624[/C][C]17.9362[/C][C]0.3044[/C][C]0.1754[/C][C]0.9628[/C][C]0.1802[/C][/ROW]
[ROW][C]102[/C][C]15.974[/C][C]17.8061[/C][C]15.2964[/C][C]20.3159[/C][C]0.0762[/C][C]0.9906[/C][C]0.9694[/C][C]0.8249[/C][/ROW]
[ROW][C]103[/C][C]15.693[/C][C]17.0071[/C][C]14.4789[/C][C]19.5352[/C][C]0.1542[/C][C]0.7884[/C][C]0.7809[/C][C]0.6209[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114948&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114948&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[91])
8716.021-------
8817.952-------
8915.954-------
9017.762-------
9116.61-------
9217.75118.107716.249719.96570.35340.94290.56520.9429
9315.45815.544113.538417.54980.46650.01550.34440.1488
9418.10617.766415.709819.82290.37310.98610.50170.8648
9515.9916.879714.792418.96710.20170.12480.60.6
9615.34918.193315.921520.46510.00710.97130.64860.914
9713.18515.458113.128517.78770.02790.53660.50.1662
9815.40917.78715.421820.15220.02440.99990.39580.8353
9916.00716.9714.577719.36230.21510.89950.7890.616
10016.63318.232215.774720.68970.10110.9620.98930.9021
10114.815.449312.962417.93620.30440.17540.96280.1802
10215.97417.806115.296420.31590.07620.99060.96940.8249
10315.69317.007114.478919.53520.15420.78840.78090.6209







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
920.0524-0.019700.127200
930.0658-0.00550.01260.00740.06730.2595
940.05910.01910.01480.11540.08330.2887
950.0631-0.05270.02430.79160.26040.5103
960.0637-0.15630.05078.09021.82641.3514
970.0769-0.1470.06675.1672.38311.5437
980.0678-0.13370.07635.65492.85051.6884
990.0719-0.05670.07390.92732.61011.6156
1000.0688-0.08770.07542.55762.60431.6138
1010.0821-0.0420.07210.42162.3861.5447
1020.0719-0.10290.07493.35672.47431.573
1030.0758-0.07730.07511.72682.4121.5531

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
92 & 0.0524 & -0.0197 & 0 & 0.1272 & 0 & 0 \tabularnewline
93 & 0.0658 & -0.0055 & 0.0126 & 0.0074 & 0.0673 & 0.2595 \tabularnewline
94 & 0.0591 & 0.0191 & 0.0148 & 0.1154 & 0.0833 & 0.2887 \tabularnewline
95 & 0.0631 & -0.0527 & 0.0243 & 0.7916 & 0.2604 & 0.5103 \tabularnewline
96 & 0.0637 & -0.1563 & 0.0507 & 8.0902 & 1.8264 & 1.3514 \tabularnewline
97 & 0.0769 & -0.147 & 0.0667 & 5.167 & 2.3831 & 1.5437 \tabularnewline
98 & 0.0678 & -0.1337 & 0.0763 & 5.6549 & 2.8505 & 1.6884 \tabularnewline
99 & 0.0719 & -0.0567 & 0.0739 & 0.9273 & 2.6101 & 1.6156 \tabularnewline
100 & 0.0688 & -0.0877 & 0.0754 & 2.5576 & 2.6043 & 1.6138 \tabularnewline
101 & 0.0821 & -0.042 & 0.0721 & 0.4216 & 2.386 & 1.5447 \tabularnewline
102 & 0.0719 & -0.1029 & 0.0749 & 3.3567 & 2.4743 & 1.573 \tabularnewline
103 & 0.0758 & -0.0773 & 0.0751 & 1.7268 & 2.412 & 1.5531 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114948&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]92[/C][C]0.0524[/C][C]-0.0197[/C][C]0[/C][C]0.1272[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]93[/C][C]0.0658[/C][C]-0.0055[/C][C]0.0126[/C][C]0.0074[/C][C]0.0673[/C][C]0.2595[/C][/ROW]
[ROW][C]94[/C][C]0.0591[/C][C]0.0191[/C][C]0.0148[/C][C]0.1154[/C][C]0.0833[/C][C]0.2887[/C][/ROW]
[ROW][C]95[/C][C]0.0631[/C][C]-0.0527[/C][C]0.0243[/C][C]0.7916[/C][C]0.2604[/C][C]0.5103[/C][/ROW]
[ROW][C]96[/C][C]0.0637[/C][C]-0.1563[/C][C]0.0507[/C][C]8.0902[/C][C]1.8264[/C][C]1.3514[/C][/ROW]
[ROW][C]97[/C][C]0.0769[/C][C]-0.147[/C][C]0.0667[/C][C]5.167[/C][C]2.3831[/C][C]1.5437[/C][/ROW]
[ROW][C]98[/C][C]0.0678[/C][C]-0.1337[/C][C]0.0763[/C][C]5.6549[/C][C]2.8505[/C][C]1.6884[/C][/ROW]
[ROW][C]99[/C][C]0.0719[/C][C]-0.0567[/C][C]0.0739[/C][C]0.9273[/C][C]2.6101[/C][C]1.6156[/C][/ROW]
[ROW][C]100[/C][C]0.0688[/C][C]-0.0877[/C][C]0.0754[/C][C]2.5576[/C][C]2.6043[/C][C]1.6138[/C][/ROW]
[ROW][C]101[/C][C]0.0821[/C][C]-0.042[/C][C]0.0721[/C][C]0.4216[/C][C]2.386[/C][C]1.5447[/C][/ROW]
[ROW][C]102[/C][C]0.0719[/C][C]-0.1029[/C][C]0.0749[/C][C]3.3567[/C][C]2.4743[/C][C]1.573[/C][/ROW]
[ROW][C]103[/C][C]0.0758[/C][C]-0.0773[/C][C]0.0751[/C][C]1.7268[/C][C]2.412[/C][C]1.5531[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114948&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114948&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
920.0524-0.019700.127200
930.0658-0.00550.01260.00740.06730.2595
940.05910.01910.01480.11540.08330.2887
950.0631-0.05270.02430.79160.26040.5103
960.0637-0.15630.05078.09021.82641.3514
970.0769-0.1470.06675.1672.38311.5437
980.0678-0.13370.07635.65492.85051.6884
990.0719-0.05670.07390.92732.61011.6156
1000.0688-0.08770.07542.55762.60431.6138
1010.0821-0.0420.07210.42162.3861.5447
1020.0719-0.10290.07493.35672.47431.573
1030.0758-0.07730.07511.72682.4121.5531



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