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 computationSat, 25 Dec 2010 18:36:11 +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/25/t12933027929fsfdk0vxuwdha5.htm/, Retrieved Sun, 28 Apr 2024 23:46:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115436, Retrieved Sun, 28 Apr 2024 23:46:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact136
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2010-12-25 18:36:11] [b7dd4adfab743bef2d672ff51f950617] [Current]
-   PD    [ARIMA Forecasting] [Werkloosheid vrou...] [2010-12-26 20:32:56] [e4afca2801c0b93eac84a600ed82fb9c]
Feedback Forum

Post a new message
Dataseries X:
186448
190530
194207
190855
200779
204428
207617
212071
214239
215883
223484
221529
225247
226699
231406
232324
237192
236727
240698
240688
245283
243556
247826
245798
250479
249216
251896
247616
249994
246552
248771
247551
249745
245742
249019
245841
248771
244723
246878
246014
248496
244351
248016
246509
249426
247840
251035
250161
254278
250801
253985
249174
251287
247947
249992
243805
255812
250417
253033
248705
253950
251484
251093
245996
252721
248019
250464
245571
252690
250183
253639
254436
265280
268705
270643
271480




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115436&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115436&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115436&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







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[64])
60248705-------
61253950-------
62251484-------
63251093-------
64245996-------
65252721253099.1499249144.1168256993.32370.42450.99980.33420.9998
66248019248589.9353243526.123253552.6360.41080.05140.12650.8472
67250464249701.0693243621.0065255636.56480.40050.71070.32290.8894
68245571244991.884237210.9031252533.23320.44020.07750.39710.3971
69252690251414.6831241628.8681260833.61720.39540.8880.39290.8703
70250183247545.6515235889.3063258677.27840.32120.18250.46680.6075
71253639248613.8854235275.6338261272.08840.21830.4040.38730.6574
72254436243677.4045228282.8717258155.5450.07260.08870.39880.3768
73265280250393.8482232894.5597266747.60070.03720.3140.39160.7009
74268705246424.5276226487.4736264865.09760.00890.02250.34480.5182
75270643247459.1748225559.0146267572.82610.01190.01920.27350.5567
76271480242592.5341218005.811264907.04330.00560.00690.14910.3825

\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[64]) \tabularnewline
60 & 248705 & - & - & - & - & - & - & - \tabularnewline
61 & 253950 & - & - & - & - & - & - & - \tabularnewline
62 & 251484 & - & - & - & - & - & - & - \tabularnewline
63 & 251093 & - & - & - & - & - & - & - \tabularnewline
64 & 245996 & - & - & - & - & - & - & - \tabularnewline
65 & 252721 & 253099.1499 & 249144.1168 & 256993.3237 & 0.4245 & 0.9998 & 0.3342 & 0.9998 \tabularnewline
66 & 248019 & 248589.9353 & 243526.123 & 253552.636 & 0.4108 & 0.0514 & 0.1265 & 0.8472 \tabularnewline
67 & 250464 & 249701.0693 & 243621.0065 & 255636.5648 & 0.4005 & 0.7107 & 0.3229 & 0.8894 \tabularnewline
68 & 245571 & 244991.884 & 237210.9031 & 252533.2332 & 0.4402 & 0.0775 & 0.3971 & 0.3971 \tabularnewline
69 & 252690 & 251414.6831 & 241628.8681 & 260833.6172 & 0.3954 & 0.888 & 0.3929 & 0.8703 \tabularnewline
70 & 250183 & 247545.6515 & 235889.3063 & 258677.2784 & 0.3212 & 0.1825 & 0.4668 & 0.6075 \tabularnewline
71 & 253639 & 248613.8854 & 235275.6338 & 261272.0884 & 0.2183 & 0.404 & 0.3873 & 0.6574 \tabularnewline
72 & 254436 & 243677.4045 & 228282.8717 & 258155.545 & 0.0726 & 0.0887 & 0.3988 & 0.3768 \tabularnewline
73 & 265280 & 250393.8482 & 232894.5597 & 266747.6007 & 0.0372 & 0.314 & 0.3916 & 0.7009 \tabularnewline
74 & 268705 & 246424.5276 & 226487.4736 & 264865.0976 & 0.0089 & 0.0225 & 0.3448 & 0.5182 \tabularnewline
75 & 270643 & 247459.1748 & 225559.0146 & 267572.8261 & 0.0119 & 0.0192 & 0.2735 & 0.5567 \tabularnewline
76 & 271480 & 242592.5341 & 218005.811 & 264907.0433 & 0.0056 & 0.0069 & 0.1491 & 0.3825 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115436&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[64])[/C][/ROW]
[ROW][C]60[/C][C]248705[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]253950[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]62[/C][C]251484[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]63[/C][C]251093[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]64[/C][C]245996[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]65[/C][C]252721[/C][C]253099.1499[/C][C]249144.1168[/C][C]256993.3237[/C][C]0.4245[/C][C]0.9998[/C][C]0.3342[/C][C]0.9998[/C][/ROW]
[ROW][C]66[/C][C]248019[/C][C]248589.9353[/C][C]243526.123[/C][C]253552.636[/C][C]0.4108[/C][C]0.0514[/C][C]0.1265[/C][C]0.8472[/C][/ROW]
[ROW][C]67[/C][C]250464[/C][C]249701.0693[/C][C]243621.0065[/C][C]255636.5648[/C][C]0.4005[/C][C]0.7107[/C][C]0.3229[/C][C]0.8894[/C][/ROW]
[ROW][C]68[/C][C]245571[/C][C]244991.884[/C][C]237210.9031[/C][C]252533.2332[/C][C]0.4402[/C][C]0.0775[/C][C]0.3971[/C][C]0.3971[/C][/ROW]
[ROW][C]69[/C][C]252690[/C][C]251414.6831[/C][C]241628.8681[/C][C]260833.6172[/C][C]0.3954[/C][C]0.888[/C][C]0.3929[/C][C]0.8703[/C][/ROW]
[ROW][C]70[/C][C]250183[/C][C]247545.6515[/C][C]235889.3063[/C][C]258677.2784[/C][C]0.3212[/C][C]0.1825[/C][C]0.4668[/C][C]0.6075[/C][/ROW]
[ROW][C]71[/C][C]253639[/C][C]248613.8854[/C][C]235275.6338[/C][C]261272.0884[/C][C]0.2183[/C][C]0.404[/C][C]0.3873[/C][C]0.6574[/C][/ROW]
[ROW][C]72[/C][C]254436[/C][C]243677.4045[/C][C]228282.8717[/C][C]258155.545[/C][C]0.0726[/C][C]0.0887[/C][C]0.3988[/C][C]0.3768[/C][/ROW]
[ROW][C]73[/C][C]265280[/C][C]250393.8482[/C][C]232894.5597[/C][C]266747.6007[/C][C]0.0372[/C][C]0.314[/C][C]0.3916[/C][C]0.7009[/C][/ROW]
[ROW][C]74[/C][C]268705[/C][C]246424.5276[/C][C]226487.4736[/C][C]264865.0976[/C][C]0.0089[/C][C]0.0225[/C][C]0.3448[/C][C]0.5182[/C][/ROW]
[ROW][C]75[/C][C]270643[/C][C]247459.1748[/C][C]225559.0146[/C][C]267572.8261[/C][C]0.0119[/C][C]0.0192[/C][C]0.2735[/C][C]0.5567[/C][/ROW]
[ROW][C]76[/C][C]271480[/C][C]242592.5341[/C][C]218005.811[/C][C]264907.0433[/C][C]0.0056[/C][C]0.0069[/C][C]0.1491[/C][C]0.3825[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115436&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115436&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[64])
60248705-------
61253950-------
62251484-------
63251093-------
64245996-------
65252721253099.1499249144.1168256993.32370.42450.99980.33420.9998
66248019248589.9353243526.123253552.6360.41080.05140.12650.8472
67250464249701.0693243621.0065255636.56480.40050.71070.32290.8894
68245571244991.884237210.9031252533.23320.44020.07750.39710.3971
69252690251414.6831241628.8681260833.61720.39540.8880.39290.8703
70250183247545.6515235889.3063258677.27840.32120.18250.46680.6075
71253639248613.8854235275.6338261272.08840.21830.4040.38730.6574
72254436243677.4045228282.8717258155.5450.07260.08870.39880.3768
73265280250393.8482232894.5597266747.60070.03720.3140.39160.7009
74268705246424.5276226487.4736264865.09760.00890.02250.34480.5182
75270643247459.1748225559.0146267572.82610.01190.01920.27350.5567
76271480242592.5341218005.811264907.04330.00560.00690.14910.3825







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
650.0078-0.00150142997.357900
660.0102-0.00230.0019325967.0726234482.2152484.2336
670.01210.00310.0023582063.1864350342.539591.8974
680.01570.00240.0023335375.3718346600.7472588.7281
690.01910.00510.00291626433.1548602567.2287776.252
700.02290.01070.00426955607.061661407.20061288.9559
710.0260.02020.006425251776.95835031460.02312243.0916
720.03030.04420.0112115747376.620918870949.59784344.0706
730.03330.05950.0165221597516.819341396123.73366433.982
740.03820.09040.0239496419449.597286898456.31999321.9342
750.04150.09370.0303537489752.012127861301.382811307.5772
760.04690.11910.0377834485684.3159186746666.627313665.5284

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
65 & 0.0078 & -0.0015 & 0 & 142997.3579 & 0 & 0 \tabularnewline
66 & 0.0102 & -0.0023 & 0.0019 & 325967.0726 & 234482.2152 & 484.2336 \tabularnewline
67 & 0.0121 & 0.0031 & 0.0023 & 582063.1864 & 350342.539 & 591.8974 \tabularnewline
68 & 0.0157 & 0.0024 & 0.0023 & 335375.3718 & 346600.7472 & 588.7281 \tabularnewline
69 & 0.0191 & 0.0051 & 0.0029 & 1626433.1548 & 602567.2287 & 776.252 \tabularnewline
70 & 0.0229 & 0.0107 & 0.0042 & 6955607.06 & 1661407.2006 & 1288.9559 \tabularnewline
71 & 0.026 & 0.0202 & 0.0064 & 25251776.9583 & 5031460.0231 & 2243.0916 \tabularnewline
72 & 0.0303 & 0.0442 & 0.0112 & 115747376.6209 & 18870949.5978 & 4344.0706 \tabularnewline
73 & 0.0333 & 0.0595 & 0.0165 & 221597516.8193 & 41396123.7336 & 6433.982 \tabularnewline
74 & 0.0382 & 0.0904 & 0.0239 & 496419449.5972 & 86898456.3199 & 9321.9342 \tabularnewline
75 & 0.0415 & 0.0937 & 0.0303 & 537489752.012 & 127861301.3828 & 11307.5772 \tabularnewline
76 & 0.0469 & 0.1191 & 0.0377 & 834485684.3159 & 186746666.6273 & 13665.5284 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115436&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]65[/C][C]0.0078[/C][C]-0.0015[/C][C]0[/C][C]142997.3579[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]66[/C][C]0.0102[/C][C]-0.0023[/C][C]0.0019[/C][C]325967.0726[/C][C]234482.2152[/C][C]484.2336[/C][/ROW]
[ROW][C]67[/C][C]0.0121[/C][C]0.0031[/C][C]0.0023[/C][C]582063.1864[/C][C]350342.539[/C][C]591.8974[/C][/ROW]
[ROW][C]68[/C][C]0.0157[/C][C]0.0024[/C][C]0.0023[/C][C]335375.3718[/C][C]346600.7472[/C][C]588.7281[/C][/ROW]
[ROW][C]69[/C][C]0.0191[/C][C]0.0051[/C][C]0.0029[/C][C]1626433.1548[/C][C]602567.2287[/C][C]776.252[/C][/ROW]
[ROW][C]70[/C][C]0.0229[/C][C]0.0107[/C][C]0.0042[/C][C]6955607.06[/C][C]1661407.2006[/C][C]1288.9559[/C][/ROW]
[ROW][C]71[/C][C]0.026[/C][C]0.0202[/C][C]0.0064[/C][C]25251776.9583[/C][C]5031460.0231[/C][C]2243.0916[/C][/ROW]
[ROW][C]72[/C][C]0.0303[/C][C]0.0442[/C][C]0.0112[/C][C]115747376.6209[/C][C]18870949.5978[/C][C]4344.0706[/C][/ROW]
[ROW][C]73[/C][C]0.0333[/C][C]0.0595[/C][C]0.0165[/C][C]221597516.8193[/C][C]41396123.7336[/C][C]6433.982[/C][/ROW]
[ROW][C]74[/C][C]0.0382[/C][C]0.0904[/C][C]0.0239[/C][C]496419449.5972[/C][C]86898456.3199[/C][C]9321.9342[/C][/ROW]
[ROW][C]75[/C][C]0.0415[/C][C]0.0937[/C][C]0.0303[/C][C]537489752.012[/C][C]127861301.3828[/C][C]11307.5772[/C][/ROW]
[ROW][C]76[/C][C]0.0469[/C][C]0.1191[/C][C]0.0377[/C][C]834485684.3159[/C][C]186746666.6273[/C][C]13665.5284[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115436&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115436&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
650.0078-0.00150142997.357900
660.0102-0.00230.0019325967.0726234482.2152484.2336
670.01210.00310.0023582063.1864350342.539591.8974
680.01570.00240.0023335375.3718346600.7472588.7281
690.01910.00510.00291626433.1548602567.2287776.252
700.02290.01070.00426955607.061661407.20061288.9559
710.0260.02020.006425251776.95835031460.02312243.0916
720.03030.04420.0112115747376.620918870949.59784344.0706
730.03330.05950.0165221597516.819341396123.73366433.982
740.03820.09040.0239496419449.597286898456.31999321.9342
750.04150.09370.0303537489752.012127861301.382811307.5772
760.04690.11910.0377834485684.3159186746666.627313665.5284



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