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, 13 Dec 2008 03:01:37 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/13/t1229162539jqww5qjny94hbpw.htm/, Retrieved Sun, 19 May 2024 08:01:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=32926, Retrieved Sun, 19 May 2024 08:01:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact214
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [Werkloosheid totalen] [2008-11-28 13:18:02] [6743688719638b0cb1c0a6e0bf433315]
-   P   [Univariate Data Series] [Total unemployment] [2008-12-02 17:54:00] [6743688719638b0cb1c0a6e0bf433315]
- RMP     [ARIMA Backward Selection] [ARIMA backward] [2008-12-13 09:57:41] [6743688719638b0cb1c0a6e0bf433315]
F RMP         [ARIMA Forecasting] [ARIMA forcast] [2008-12-13 10:01:37] [9b05d7ef5dbcfba4217d280d9092f628] [Current]
Feedback Forum
2008-12-20 20:38:13 [Kevin Neelen] [reply
De student heeft hier gebruik gemaakt van de juiste methode om deze vraagstelling correct op te lossen, namelijk het ARIMA-Forecasting Model.

Deze computation is correct uitgevoerd maar de student heeft in het bijgevoegde document geen conclusie gegeven over hetgeen te zien is in de grafiek en tabellen.

Post a new message
Dataseries X:
569323
579714
577992
565464
547344
554788
562325
560854
555332
543599
536662
542722
593530
610763
612613
611324
594167
595454
590865
589379
584428
573100
567456
569028
620735
628884
628232
612117
595404
597141
593408
590072
579799
574205
572775
572942
619567
625809
619916
587625
565742
557274
560576
548854
531673
525919
511038
498662
555362
564591
541657
527070
509846
514258
516922
507561
492622
490243
469357
477580
528379




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32926&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32926&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32926&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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







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[49])
48498662-------
49555362-------
50564591556350.9454520810.7874591891.10340.32480.52170.52170.5217
51541657557197.467508211.8223606183.11170.2670.38370.38370.5293
52527070557917.5889499350.4102616484.76760.1510.70680.70680.5341
53509846558525.5326492407.441624643.62420.07450.82450.82450.5374
54514258559033.9192486659.7374631408.10110.11260.90860.90860.5396
55516922559453.9502481730.3782637177.52210.14170.87280.87280.5411
56507561559795.5663477393.8077642197.3250.1070.84610.84610.542
57492622560067.5903473503.1307646632.04990.06340.88280.88280.5424
58490243560277.8519469957.0405650598.66330.06430.9290.9290.5425
59469357560433.3001466682.7121654183.88810.02840.92890.92890.5422
60477580560540.102463626.1155657454.08860.04670.96740.96740.5417
61528379560603.7309460746.1516660461.31030.26350.94840.94840.541

\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[49]) \tabularnewline
48 & 498662 & - & - & - & - & - & - & - \tabularnewline
49 & 555362 & - & - & - & - & - & - & - \tabularnewline
50 & 564591 & 556350.9454 & 520810.7874 & 591891.1034 & 0.3248 & 0.5217 & 0.5217 & 0.5217 \tabularnewline
51 & 541657 & 557197.467 & 508211.8223 & 606183.1117 & 0.267 & 0.3837 & 0.3837 & 0.5293 \tabularnewline
52 & 527070 & 557917.5889 & 499350.4102 & 616484.7676 & 0.151 & 0.7068 & 0.7068 & 0.5341 \tabularnewline
53 & 509846 & 558525.5326 & 492407.441 & 624643.6242 & 0.0745 & 0.8245 & 0.8245 & 0.5374 \tabularnewline
54 & 514258 & 559033.9192 & 486659.7374 & 631408.1011 & 0.1126 & 0.9086 & 0.9086 & 0.5396 \tabularnewline
55 & 516922 & 559453.9502 & 481730.3782 & 637177.5221 & 0.1417 & 0.8728 & 0.8728 & 0.5411 \tabularnewline
56 & 507561 & 559795.5663 & 477393.8077 & 642197.325 & 0.107 & 0.8461 & 0.8461 & 0.542 \tabularnewline
57 & 492622 & 560067.5903 & 473503.1307 & 646632.0499 & 0.0634 & 0.8828 & 0.8828 & 0.5424 \tabularnewline
58 & 490243 & 560277.8519 & 469957.0405 & 650598.6633 & 0.0643 & 0.929 & 0.929 & 0.5425 \tabularnewline
59 & 469357 & 560433.3001 & 466682.7121 & 654183.8881 & 0.0284 & 0.9289 & 0.9289 & 0.5422 \tabularnewline
60 & 477580 & 560540.102 & 463626.1155 & 657454.0886 & 0.0467 & 0.9674 & 0.9674 & 0.5417 \tabularnewline
61 & 528379 & 560603.7309 & 460746.1516 & 660461.3103 & 0.2635 & 0.9484 & 0.9484 & 0.541 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32926&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[49])[/C][/ROW]
[ROW][C]48[/C][C]498662[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]49[/C][C]555362[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]564591[/C][C]556350.9454[/C][C]520810.7874[/C][C]591891.1034[/C][C]0.3248[/C][C]0.5217[/C][C]0.5217[/C][C]0.5217[/C][/ROW]
[ROW][C]51[/C][C]541657[/C][C]557197.467[/C][C]508211.8223[/C][C]606183.1117[/C][C]0.267[/C][C]0.3837[/C][C]0.3837[/C][C]0.5293[/C][/ROW]
[ROW][C]52[/C][C]527070[/C][C]557917.5889[/C][C]499350.4102[/C][C]616484.7676[/C][C]0.151[/C][C]0.7068[/C][C]0.7068[/C][C]0.5341[/C][/ROW]
[ROW][C]53[/C][C]509846[/C][C]558525.5326[/C][C]492407.441[/C][C]624643.6242[/C][C]0.0745[/C][C]0.8245[/C][C]0.8245[/C][C]0.5374[/C][/ROW]
[ROW][C]54[/C][C]514258[/C][C]559033.9192[/C][C]486659.7374[/C][C]631408.1011[/C][C]0.1126[/C][C]0.9086[/C][C]0.9086[/C][C]0.5396[/C][/ROW]
[ROW][C]55[/C][C]516922[/C][C]559453.9502[/C][C]481730.3782[/C][C]637177.5221[/C][C]0.1417[/C][C]0.8728[/C][C]0.8728[/C][C]0.5411[/C][/ROW]
[ROW][C]56[/C][C]507561[/C][C]559795.5663[/C][C]477393.8077[/C][C]642197.325[/C][C]0.107[/C][C]0.8461[/C][C]0.8461[/C][C]0.542[/C][/ROW]
[ROW][C]57[/C][C]492622[/C][C]560067.5903[/C][C]473503.1307[/C][C]646632.0499[/C][C]0.0634[/C][C]0.8828[/C][C]0.8828[/C][C]0.5424[/C][/ROW]
[ROW][C]58[/C][C]490243[/C][C]560277.8519[/C][C]469957.0405[/C][C]650598.6633[/C][C]0.0643[/C][C]0.929[/C][C]0.929[/C][C]0.5425[/C][/ROW]
[ROW][C]59[/C][C]469357[/C][C]560433.3001[/C][C]466682.7121[/C][C]654183.8881[/C][C]0.0284[/C][C]0.9289[/C][C]0.9289[/C][C]0.5422[/C][/ROW]
[ROW][C]60[/C][C]477580[/C][C]560540.102[/C][C]463626.1155[/C][C]657454.0886[/C][C]0.0467[/C][C]0.9674[/C][C]0.9674[/C][C]0.5417[/C][/ROW]
[ROW][C]61[/C][C]528379[/C][C]560603.7309[/C][C]460746.1516[/C][C]660461.3103[/C][C]0.2635[/C][C]0.9484[/C][C]0.9484[/C][C]0.541[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32926&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32926&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[49])
48498662-------
49555362-------
50564591556350.9454520810.7874591891.10340.32480.52170.52170.5217
51541657557197.467508211.8223606183.11170.2670.38370.38370.5293
52527070557917.5889499350.4102616484.76760.1510.70680.70680.5341
53509846558525.5326492407.441624643.62420.07450.82450.82450.5374
54514258559033.9192486659.7374631408.10110.11260.90860.90860.5396
55516922559453.9502481730.3782637177.52210.14170.87280.87280.5411
56507561559795.5663477393.8077642197.3250.1070.84610.84610.542
57492622560067.5903473503.1307646632.04990.06340.88280.88280.5424
58490243560277.8519469957.0405650598.66330.06430.9290.9290.5425
59469357560433.3001466682.7121654183.88810.02840.92890.92890.5422
60477580560540.102463626.1155657454.08860.04670.96740.96740.5417
61528379560603.7309460746.1516660461.31030.26350.94840.94840.541







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
500.03260.01480.001267898499.31545658208.27632378.6989
510.0449-0.02790.0023241506114.171720125509.51434486.1464
520.0536-0.05530.0046951573742.151579297811.8468904.9319
530.0604-0.08720.00732369696891.5424197474740.961914052.5706
540.0661-0.08010.00672004882943.3743167073578.614512925.6945
550.0709-0.0760.00631808966784.4588150747232.038212277.9164
560.0751-0.09330.00782728449920.6093227370826.717415078.8205
570.0789-0.12040.014548907649.578379075637.464819469.8649
580.0822-0.1250.01044904880481.1614408740040.096820217.3203
590.0853-0.16250.01358294892443.6162691241036.96826291.4632
600.0882-0.1480.01236882378532.004573531544.333723948.5186
610.0909-0.05750.00481038433283.593386536106.96619302.4785

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
50 & 0.0326 & 0.0148 & 0.0012 & 67898499.3154 & 5658208.2763 & 2378.6989 \tabularnewline
51 & 0.0449 & -0.0279 & 0.0023 & 241506114.1717 & 20125509.5143 & 4486.1464 \tabularnewline
52 & 0.0536 & -0.0553 & 0.0046 & 951573742.1515 & 79297811.846 & 8904.9319 \tabularnewline
53 & 0.0604 & -0.0872 & 0.0073 & 2369696891.5424 & 197474740.9619 & 14052.5706 \tabularnewline
54 & 0.0661 & -0.0801 & 0.0067 & 2004882943.3743 & 167073578.6145 & 12925.6945 \tabularnewline
55 & 0.0709 & -0.076 & 0.0063 & 1808966784.4588 & 150747232.0382 & 12277.9164 \tabularnewline
56 & 0.0751 & -0.0933 & 0.0078 & 2728449920.6093 & 227370826.7174 & 15078.8205 \tabularnewline
57 & 0.0789 & -0.1204 & 0.01 & 4548907649.578 & 379075637.4648 & 19469.8649 \tabularnewline
58 & 0.0822 & -0.125 & 0.0104 & 4904880481.1614 & 408740040.0968 & 20217.3203 \tabularnewline
59 & 0.0853 & -0.1625 & 0.0135 & 8294892443.6162 & 691241036.968 & 26291.4632 \tabularnewline
60 & 0.0882 & -0.148 & 0.0123 & 6882378532.004 & 573531544.3337 & 23948.5186 \tabularnewline
61 & 0.0909 & -0.0575 & 0.0048 & 1038433283.5933 & 86536106.9661 & 9302.4785 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32926&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]50[/C][C]0.0326[/C][C]0.0148[/C][C]0.0012[/C][C]67898499.3154[/C][C]5658208.2763[/C][C]2378.6989[/C][/ROW]
[ROW][C]51[/C][C]0.0449[/C][C]-0.0279[/C][C]0.0023[/C][C]241506114.1717[/C][C]20125509.5143[/C][C]4486.1464[/C][/ROW]
[ROW][C]52[/C][C]0.0536[/C][C]-0.0553[/C][C]0.0046[/C][C]951573742.1515[/C][C]79297811.846[/C][C]8904.9319[/C][/ROW]
[ROW][C]53[/C][C]0.0604[/C][C]-0.0872[/C][C]0.0073[/C][C]2369696891.5424[/C][C]197474740.9619[/C][C]14052.5706[/C][/ROW]
[ROW][C]54[/C][C]0.0661[/C][C]-0.0801[/C][C]0.0067[/C][C]2004882943.3743[/C][C]167073578.6145[/C][C]12925.6945[/C][/ROW]
[ROW][C]55[/C][C]0.0709[/C][C]-0.076[/C][C]0.0063[/C][C]1808966784.4588[/C][C]150747232.0382[/C][C]12277.9164[/C][/ROW]
[ROW][C]56[/C][C]0.0751[/C][C]-0.0933[/C][C]0.0078[/C][C]2728449920.6093[/C][C]227370826.7174[/C][C]15078.8205[/C][/ROW]
[ROW][C]57[/C][C]0.0789[/C][C]-0.1204[/C][C]0.01[/C][C]4548907649.578[/C][C]379075637.4648[/C][C]19469.8649[/C][/ROW]
[ROW][C]58[/C][C]0.0822[/C][C]-0.125[/C][C]0.0104[/C][C]4904880481.1614[/C][C]408740040.0968[/C][C]20217.3203[/C][/ROW]
[ROW][C]59[/C][C]0.0853[/C][C]-0.1625[/C][C]0.0135[/C][C]8294892443.6162[/C][C]691241036.968[/C][C]26291.4632[/C][/ROW]
[ROW][C]60[/C][C]0.0882[/C][C]-0.148[/C][C]0.0123[/C][C]6882378532.004[/C][C]573531544.3337[/C][C]23948.5186[/C][/ROW]
[ROW][C]61[/C][C]0.0909[/C][C]-0.0575[/C][C]0.0048[/C][C]1038433283.5933[/C][C]86536106.9661[/C][C]9302.4785[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32926&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32926&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
500.03260.01480.001267898499.31545658208.27632378.6989
510.0449-0.02790.0023241506114.171720125509.51434486.1464
520.0536-0.05530.0046951573742.151579297811.8468904.9319
530.0604-0.08720.00732369696891.5424197474740.961914052.5706
540.0661-0.08010.00672004882943.3743167073578.614512925.6945
550.0709-0.0760.00631808966784.4588150747232.038212277.9164
560.0751-0.09330.00782728449920.6093227370826.717415078.8205
570.0789-0.12040.014548907649.578379075637.464819469.8649
580.0822-0.1250.01044904880481.1614408740040.096820217.3203
590.0853-0.16250.01358294892443.6162691241036.96826291.4632
600.0882-0.1480.01236882378532.004573531544.333723948.5186
610.0909-0.05750.00481038433283.593386536106.96619302.4785



Parameters (Session):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 1 ; par6 = 1 ; par7 = 1 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 1 ; par6 = 1 ; par7 = 1 ; 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,fx))
(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.se <- array(0, dim=fx)
perf.mse <- 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.mape[i] = perf.mape[i] + abs(perf.pe[i])
perf.se[i] = (x[nx+i] - forecast$pred[i])^2
perf.mse[i] = perf.mse[i] + perf.se[i]
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 = perf.mape / fx
perf.mse = perf.mse / fx
perf.rmse = sqrt(perf.mse)
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:12] <- 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.mape[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse[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')