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 computationSun, 13 Dec 2009 15:03:14 -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/2009/Dec/13/t1260741899lg80vdvu93yq34j.htm/, Retrieved Sun, 28 Apr 2024 16:54:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67421, Retrieved Sun, 28 Apr 2024 16:54:22 +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] [Paper Arima forec...] [2009-12-13 22:03:14] [dd4f17965cad1d38de7a1c062d32d75d] [Current]
Feedback Forum

Post a new message
Dataseries X:
349
336
331
327
323
322
385
405
412
411
410
415
414
411
408
410
411
416
479
498
502
498
499
506
510
509
502
495
490
490
553
570
573
572
575
580
580
574
563
556
546
545
605
628
631
626
614
606
602
589
574
558
552
546
607
636
631
623
618
605
619
596
570
546
528
506
555
568
564
553
541
542
540
521
505
491
482
478
523
531
532
540
525
533
531
508
495
482
470
466
515
518
516
511
500
498
494
476
458
443
430
424
476
481
470
460
451
450
444
429
421
400
389
384
432
446
431
423
416
416
413
399
386
374
365
365
418
428
424
421
417
423
423
419
406
398
390
391
444
460
455
456
452
459
461
451
443
439
430
436
488
506
502
501
501
515
521
520
512
509
505
511
570
592
594
586
586
592
594
586
572
563
555
554
601
622
617
606
595
599
600
592
575
567
555
555
608
631
629
624
610
616
621
604
584
574
555
545
599
620
608
590
579
580
579
572
560
551
537
541
588
607
599
578
563
566
561
554
540
526
512
505
554
584
569
540
522
526
527
516
503
489
479
475
524
552
532
511
492
492
493
481
462
457
442
439
488
521
501
485
464
460
467
460
448
443
436
431
484
510
513
503
471
471
476
475
470
461
455
456
517
525
523
519
509
512
519
517
510
509
501
507
569
580
578
565
547
555
562
561
555
544
537
543
594
611
613
611
594
595
591
589
584
573
567
569
621
629
628
612
595
597
593
590
580
574
573
573
620
626
620
588
566
557
561
549
532
526
511
499
555
565
542
527
510
514
517
508
493
490
469
478
528
534
518
506
502
516
528
533
536
537
524
536
587
597
581
564
558




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67421&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67421&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67421&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'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[347])
346506-------
347502-------
348516489.2535458.7163519.79080.0430.20660.20660.2066
349528473.8027426.9429520.66250.01170.03880.03880.1191
350533463.5648409.5713517.55830.00590.00970.00970.0815
351536458.7874400.5749516.99990.00470.00620.00620.0728
352537460.0826399.4353520.72990.00650.00710.00710.0878
353524466.0276403.4979528.55730.03460.01310.01310.1298
354536474.1903409.4666538.91410.03060.06570.06570.1999
355587481.7216413.6164549.82670.00120.05910.05910.2797
356597486.1412412.6568559.62550.00160.00360.00360.3362
357581485.9479404.7949567.10090.01080.00370.00370.3491
358564480.938390.3685571.50760.03610.01520.01520.3243
359558472.1653371.5559572.77480.04720.03680.03680.2805

\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[347]) \tabularnewline
346 & 506 & - & - & - & - & - & - & - \tabularnewline
347 & 502 & - & - & - & - & - & - & - \tabularnewline
348 & 516 & 489.2535 & 458.7163 & 519.7908 & 0.043 & 0.2066 & 0.2066 & 0.2066 \tabularnewline
349 & 528 & 473.8027 & 426.9429 & 520.6625 & 0.0117 & 0.0388 & 0.0388 & 0.1191 \tabularnewline
350 & 533 & 463.5648 & 409.5713 & 517.5583 & 0.0059 & 0.0097 & 0.0097 & 0.0815 \tabularnewline
351 & 536 & 458.7874 & 400.5749 & 516.9999 & 0.0047 & 0.0062 & 0.0062 & 0.0728 \tabularnewline
352 & 537 & 460.0826 & 399.4353 & 520.7299 & 0.0065 & 0.0071 & 0.0071 & 0.0878 \tabularnewline
353 & 524 & 466.0276 & 403.4979 & 528.5573 & 0.0346 & 0.0131 & 0.0131 & 0.1298 \tabularnewline
354 & 536 & 474.1903 & 409.4666 & 538.9141 & 0.0306 & 0.0657 & 0.0657 & 0.1999 \tabularnewline
355 & 587 & 481.7216 & 413.6164 & 549.8267 & 0.0012 & 0.0591 & 0.0591 & 0.2797 \tabularnewline
356 & 597 & 486.1412 & 412.6568 & 559.6255 & 0.0016 & 0.0036 & 0.0036 & 0.3362 \tabularnewline
357 & 581 & 485.9479 & 404.7949 & 567.1009 & 0.0108 & 0.0037 & 0.0037 & 0.3491 \tabularnewline
358 & 564 & 480.938 & 390.3685 & 571.5076 & 0.0361 & 0.0152 & 0.0152 & 0.3243 \tabularnewline
359 & 558 & 472.1653 & 371.5559 & 572.7748 & 0.0472 & 0.0368 & 0.0368 & 0.2805 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67421&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[347])[/C][/ROW]
[ROW][C]346[/C][C]506[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]347[/C][C]502[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]348[/C][C]516[/C][C]489.2535[/C][C]458.7163[/C][C]519.7908[/C][C]0.043[/C][C]0.2066[/C][C]0.2066[/C][C]0.2066[/C][/ROW]
[ROW][C]349[/C][C]528[/C][C]473.8027[/C][C]426.9429[/C][C]520.6625[/C][C]0.0117[/C][C]0.0388[/C][C]0.0388[/C][C]0.1191[/C][/ROW]
[ROW][C]350[/C][C]533[/C][C]463.5648[/C][C]409.5713[/C][C]517.5583[/C][C]0.0059[/C][C]0.0097[/C][C]0.0097[/C][C]0.0815[/C][/ROW]
[ROW][C]351[/C][C]536[/C][C]458.7874[/C][C]400.5749[/C][C]516.9999[/C][C]0.0047[/C][C]0.0062[/C][C]0.0062[/C][C]0.0728[/C][/ROW]
[ROW][C]352[/C][C]537[/C][C]460.0826[/C][C]399.4353[/C][C]520.7299[/C][C]0.0065[/C][C]0.0071[/C][C]0.0071[/C][C]0.0878[/C][/ROW]
[ROW][C]353[/C][C]524[/C][C]466.0276[/C][C]403.4979[/C][C]528.5573[/C][C]0.0346[/C][C]0.0131[/C][C]0.0131[/C][C]0.1298[/C][/ROW]
[ROW][C]354[/C][C]536[/C][C]474.1903[/C][C]409.4666[/C][C]538.9141[/C][C]0.0306[/C][C]0.0657[/C][C]0.0657[/C][C]0.1999[/C][/ROW]
[ROW][C]355[/C][C]587[/C][C]481.7216[/C][C]413.6164[/C][C]549.8267[/C][C]0.0012[/C][C]0.0591[/C][C]0.0591[/C][C]0.2797[/C][/ROW]
[ROW][C]356[/C][C]597[/C][C]486.1412[/C][C]412.6568[/C][C]559.6255[/C][C]0.0016[/C][C]0.0036[/C][C]0.0036[/C][C]0.3362[/C][/ROW]
[ROW][C]357[/C][C]581[/C][C]485.9479[/C][C]404.7949[/C][C]567.1009[/C][C]0.0108[/C][C]0.0037[/C][C]0.0037[/C][C]0.3491[/C][/ROW]
[ROW][C]358[/C][C]564[/C][C]480.938[/C][C]390.3685[/C][C]571.5076[/C][C]0.0361[/C][C]0.0152[/C][C]0.0152[/C][C]0.3243[/C][/ROW]
[ROW][C]359[/C][C]558[/C][C]472.1653[/C][C]371.5559[/C][C]572.7748[/C][C]0.0472[/C][C]0.0368[/C][C]0.0368[/C][C]0.2805[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67421&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67421&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[347])
346506-------
347502-------
348516489.2535458.7163519.79080.0430.20660.20660.2066
349528473.8027426.9429520.66250.01170.03880.03880.1191
350533463.5648409.5713517.55830.00590.00970.00970.0815
351536458.7874400.5749516.99990.00470.00620.00620.0728
352537460.0826399.4353520.72990.00650.00710.00710.0878
353524466.0276403.4979528.55730.03460.01310.01310.1298
354536474.1903409.4666538.91410.03060.06570.06570.1999
355587481.7216413.6164549.82670.00120.05910.05910.2797
356597486.1412412.6568559.62550.00160.00360.00360.3362
357581485.9479404.7949567.10090.01080.00370.00370.3491
358564480.938390.3685571.50760.03610.01520.01520.3243
359558472.1653371.5559572.77480.04720.03680.03680.2805







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
3480.03180.05470715.37300
3490.05050.11440.08452937.34711826.360142.7359
3500.05940.14980.10634821.24932824.656553.1475
3510.06470.16830.12185961.78683608.939160.0744
3520.06730.16720.13095916.2864070.408463.7998
3530.06850.12440.12983360.79683952.139862.866
3540.06960.13030.12993820.43333933.324662.7162
3550.07210.21850.14111083.54674827.102469.4774
3560.07710.2280.150612289.67985656.277775.2082
3570.08520.19560.15519034.90025994.139977.4218
3580.09610.17270.15676899.29296076.426577.9514
3590.10870.18180.15887367.58786184.023378.6386

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
348 & 0.0318 & 0.0547 & 0 & 715.373 & 0 & 0 \tabularnewline
349 & 0.0505 & 0.1144 & 0.0845 & 2937.3471 & 1826.3601 & 42.7359 \tabularnewline
350 & 0.0594 & 0.1498 & 0.1063 & 4821.2493 & 2824.6565 & 53.1475 \tabularnewline
351 & 0.0647 & 0.1683 & 0.1218 & 5961.7868 & 3608.9391 & 60.0744 \tabularnewline
352 & 0.0673 & 0.1672 & 0.1309 & 5916.286 & 4070.4084 & 63.7998 \tabularnewline
353 & 0.0685 & 0.1244 & 0.1298 & 3360.7968 & 3952.1398 & 62.866 \tabularnewline
354 & 0.0696 & 0.1303 & 0.1299 & 3820.4333 & 3933.3246 & 62.7162 \tabularnewline
355 & 0.0721 & 0.2185 & 0.141 & 11083.5467 & 4827.1024 & 69.4774 \tabularnewline
356 & 0.0771 & 0.228 & 0.1506 & 12289.6798 & 5656.2777 & 75.2082 \tabularnewline
357 & 0.0852 & 0.1956 & 0.1551 & 9034.9002 & 5994.1399 & 77.4218 \tabularnewline
358 & 0.0961 & 0.1727 & 0.1567 & 6899.2929 & 6076.4265 & 77.9514 \tabularnewline
359 & 0.1087 & 0.1818 & 0.1588 & 7367.5878 & 6184.0233 & 78.6386 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67421&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]348[/C][C]0.0318[/C][C]0.0547[/C][C]0[/C][C]715.373[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]349[/C][C]0.0505[/C][C]0.1144[/C][C]0.0845[/C][C]2937.3471[/C][C]1826.3601[/C][C]42.7359[/C][/ROW]
[ROW][C]350[/C][C]0.0594[/C][C]0.1498[/C][C]0.1063[/C][C]4821.2493[/C][C]2824.6565[/C][C]53.1475[/C][/ROW]
[ROW][C]351[/C][C]0.0647[/C][C]0.1683[/C][C]0.1218[/C][C]5961.7868[/C][C]3608.9391[/C][C]60.0744[/C][/ROW]
[ROW][C]352[/C][C]0.0673[/C][C]0.1672[/C][C]0.1309[/C][C]5916.286[/C][C]4070.4084[/C][C]63.7998[/C][/ROW]
[ROW][C]353[/C][C]0.0685[/C][C]0.1244[/C][C]0.1298[/C][C]3360.7968[/C][C]3952.1398[/C][C]62.866[/C][/ROW]
[ROW][C]354[/C][C]0.0696[/C][C]0.1303[/C][C]0.1299[/C][C]3820.4333[/C][C]3933.3246[/C][C]62.7162[/C][/ROW]
[ROW][C]355[/C][C]0.0721[/C][C]0.2185[/C][C]0.141[/C][C]11083.5467[/C][C]4827.1024[/C][C]69.4774[/C][/ROW]
[ROW][C]356[/C][C]0.0771[/C][C]0.228[/C][C]0.1506[/C][C]12289.6798[/C][C]5656.2777[/C][C]75.2082[/C][/ROW]
[ROW][C]357[/C][C]0.0852[/C][C]0.1956[/C][C]0.1551[/C][C]9034.9002[/C][C]5994.1399[/C][C]77.4218[/C][/ROW]
[ROW][C]358[/C][C]0.0961[/C][C]0.1727[/C][C]0.1567[/C][C]6899.2929[/C][C]6076.4265[/C][C]77.9514[/C][/ROW]
[ROW][C]359[/C][C]0.1087[/C][C]0.1818[/C][C]0.1588[/C][C]7367.5878[/C][C]6184.0233[/C][C]78.6386[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67421&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67421&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
3480.03180.05470715.37300
3490.05050.11440.08452937.34711826.360142.7359
3500.05940.14980.10634821.24932824.656553.1475
3510.06470.16830.12185961.78683608.939160.0744
3520.06730.16720.13095916.2864070.408463.7998
3530.06850.12440.12983360.79683952.139862.866
3540.06960.13030.12993820.43333933.324662.7162
3550.07210.21850.14111083.54674827.102469.4774
3560.07710.2280.150612289.67985656.277775.2082
3570.08520.19560.15519034.90025994.139977.4218
3580.09610.17270.15676899.29296076.426577.9514
3590.10870.18180.15887367.58786184.023378.6386



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