Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationSat, 08 Dec 2007 04:09:06 -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/2007/Dec/08/t1197111403w98to1gmanm3575.htm/, Retrieved Tue, 19 May 2026 11:46:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2910, Retrieved Tue, 19 May 2026 11:46:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsPAF-25
Estimated Impact508
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [ARIMA forecasting...] [2007-12-08 11:09:06] [65108f21b143a71c6470aac06bd65b08] [Current]
Feedback Forum

Post a new message
Dataseries X:
140
132
117
114
113
110
107
103
98
98
137
148
147
139
130
128
127
123
118
114
108
111
151
159
158
148
138
137
136
133
126
120
114
116
153
162
161
149
139
135
130
127
122
117
112
113
149
157
157
147
137
132
125
123
117
114
111
112
144
150
149
134
123
116
117
111
105
102
95
93
124
130
124




Summary of compuational 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 compuational 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=2910&T=0

[TABLE]
[ROW][C]Summary of compuational 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=2910&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2910&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 compuational 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[61])
49157-------
50147-------
51137-------
52132-------
53125-------
54123-------
55117-------
56114-------
57111-------
58112-------
59144-------
60150-------
61149-------
62134139135.3441142.65590.0037000
63123129123.8298134.17020.01150.0290.00120
64116124117.6678130.33220.00660.62150.00660
65117117109.6882124.31180.50.60570.0160
66111115106.8252123.17480.16880.31580.02760
67105109100.0449117.95510.19070.33080.040
6810210696.3274115.67260.20880.58030.05250
699510392.6596113.34040.06470.57520.06470
709310493.0323114.96770.02470.94610.07640
71124136124.439147.5610.02110.08750.0138
72130142129.8748154.12520.02620.99820.0980.1289
73124141128.3356153.66440.00430.95570.10780.1078

\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[61]) \tabularnewline
49 & 157 & - & - & - & - & - & - & - \tabularnewline
50 & 147 & - & - & - & - & - & - & - \tabularnewline
51 & 137 & - & - & - & - & - & - & - \tabularnewline
52 & 132 & - & - & - & - & - & - & - \tabularnewline
53 & 125 & - & - & - & - & - & - & - \tabularnewline
54 & 123 & - & - & - & - & - & - & - \tabularnewline
55 & 117 & - & - & - & - & - & - & - \tabularnewline
56 & 114 & - & - & - & - & - & - & - \tabularnewline
57 & 111 & - & - & - & - & - & - & - \tabularnewline
58 & 112 & - & - & - & - & - & - & - \tabularnewline
59 & 144 & - & - & - & - & - & - & - \tabularnewline
60 & 150 & - & - & - & - & - & - & - \tabularnewline
61 & 149 & - & - & - & - & - & - & - \tabularnewline
62 & 134 & 139 & 135.3441 & 142.6559 & 0.0037 & 0 & 0 & 0 \tabularnewline
63 & 123 & 129 & 123.8298 & 134.1702 & 0.0115 & 0.029 & 0.0012 & 0 \tabularnewline
64 & 116 & 124 & 117.6678 & 130.3322 & 0.0066 & 0.6215 & 0.0066 & 0 \tabularnewline
65 & 117 & 117 & 109.6882 & 124.3118 & 0.5 & 0.6057 & 0.016 & 0 \tabularnewline
66 & 111 & 115 & 106.8252 & 123.1748 & 0.1688 & 0.3158 & 0.0276 & 0 \tabularnewline
67 & 105 & 109 & 100.0449 & 117.9551 & 0.1907 & 0.3308 & 0.04 & 0 \tabularnewline
68 & 102 & 106 & 96.3274 & 115.6726 & 0.2088 & 0.5803 & 0.0525 & 0 \tabularnewline
69 & 95 & 103 & 92.6596 & 113.3404 & 0.0647 & 0.5752 & 0.0647 & 0 \tabularnewline
70 & 93 & 104 & 93.0323 & 114.9677 & 0.0247 & 0.9461 & 0.0764 & 0 \tabularnewline
71 & 124 & 136 & 124.439 & 147.561 & 0.021 & 1 & 0.0875 & 0.0138 \tabularnewline
72 & 130 & 142 & 129.8748 & 154.1252 & 0.0262 & 0.9982 & 0.098 & 0.1289 \tabularnewline
73 & 124 & 141 & 128.3356 & 153.6644 & 0.0043 & 0.9557 & 0.1078 & 0.1078 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2910&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[61])[/C][/ROW]
[ROW][C]49[/C][C]157[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]50[/C][C]147[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]51[/C][C]137[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]52[/C][C]132[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]53[/C][C]125[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]54[/C][C]123[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]55[/C][C]117[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]56[/C][C]114[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]57[/C][C]111[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]58[/C][C]112[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]59[/C][C]144[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]60[/C][C]150[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]61[/C][C]149[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]62[/C][C]134[/C][C]139[/C][C]135.3441[/C][C]142.6559[/C][C]0.0037[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]63[/C][C]123[/C][C]129[/C][C]123.8298[/C][C]134.1702[/C][C]0.0115[/C][C]0.029[/C][C]0.0012[/C][C]0[/C][/ROW]
[ROW][C]64[/C][C]116[/C][C]124[/C][C]117.6678[/C][C]130.3322[/C][C]0.0066[/C][C]0.6215[/C][C]0.0066[/C][C]0[/C][/ROW]
[ROW][C]65[/C][C]117[/C][C]117[/C][C]109.6882[/C][C]124.3118[/C][C]0.5[/C][C]0.6057[/C][C]0.016[/C][C]0[/C][/ROW]
[ROW][C]66[/C][C]111[/C][C]115[/C][C]106.8252[/C][C]123.1748[/C][C]0.1688[/C][C]0.3158[/C][C]0.0276[/C][C]0[/C][/ROW]
[ROW][C]67[/C][C]105[/C][C]109[/C][C]100.0449[/C][C]117.9551[/C][C]0.1907[/C][C]0.3308[/C][C]0.04[/C][C]0[/C][/ROW]
[ROW][C]68[/C][C]102[/C][C]106[/C][C]96.3274[/C][C]115.6726[/C][C]0.2088[/C][C]0.5803[/C][C]0.0525[/C][C]0[/C][/ROW]
[ROW][C]69[/C][C]95[/C][C]103[/C][C]92.6596[/C][C]113.3404[/C][C]0.0647[/C][C]0.5752[/C][C]0.0647[/C][C]0[/C][/ROW]
[ROW][C]70[/C][C]93[/C][C]104[/C][C]93.0323[/C][C]114.9677[/C][C]0.0247[/C][C]0.9461[/C][C]0.0764[/C][C]0[/C][/ROW]
[ROW][C]71[/C][C]124[/C][C]136[/C][C]124.439[/C][C]147.561[/C][C]0.021[/C][C]1[/C][C]0.0875[/C][C]0.0138[/C][/ROW]
[ROW][C]72[/C][C]130[/C][C]142[/C][C]129.8748[/C][C]154.1252[/C][C]0.0262[/C][C]0.9982[/C][C]0.098[/C][C]0.1289[/C][/ROW]
[ROW][C]73[/C][C]124[/C][C]141[/C][C]128.3356[/C][C]153.6644[/C][C]0.0043[/C][C]0.9557[/C][C]0.1078[/C][C]0.1078[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2910&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2910&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[61])
49157-------
50147-------
51137-------
52132-------
53125-------
54123-------
55117-------
56114-------
57111-------
58112-------
59144-------
60150-------
61149-------
62134139135.3441142.65590.0037000
63123129123.8298134.17020.01150.0290.00120
64116124117.6678130.33220.00660.62150.00660
65117117109.6882124.31180.50.60570.0160
66111115106.8252123.17480.16880.31580.02760
67105109100.0449117.95510.19070.33080.040
6810210696.3274115.67260.20880.58030.05250
699510392.6596113.34040.06470.57520.06470
709310493.0323114.96770.02470.94610.07640
71124136124.439147.5610.02110.08750.0138
72130142129.8748154.12520.02620.99820.0980.1289
73124141128.3356153.66440.00430.95570.10780.1078







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
620.0134-0.0360.003252.08331.4434
630.0204-0.04650.00393631.7321
640.0261-0.06450.0054645.33332.3094
650.031900000
660.0363-0.03480.0029161.33331.1547
670.0419-0.03670.0031161.33331.1547
680.0466-0.03770.0031161.33331.1547
690.0512-0.07770.0065645.33332.3094
700.0538-0.10580.008812110.08333.1754
710.0434-0.08820.0074144123.4641
720.0436-0.08450.007144123.4641
730.0458-0.12060.0128924.08334.9075

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
62 & 0.0134 & -0.036 & 0.003 & 25 & 2.0833 & 1.4434 \tabularnewline
63 & 0.0204 & -0.0465 & 0.0039 & 36 & 3 & 1.7321 \tabularnewline
64 & 0.0261 & -0.0645 & 0.0054 & 64 & 5.3333 & 2.3094 \tabularnewline
65 & 0.0319 & 0 & 0 & 0 & 0 & 0 \tabularnewline
66 & 0.0363 & -0.0348 & 0.0029 & 16 & 1.3333 & 1.1547 \tabularnewline
67 & 0.0419 & -0.0367 & 0.0031 & 16 & 1.3333 & 1.1547 \tabularnewline
68 & 0.0466 & -0.0377 & 0.0031 & 16 & 1.3333 & 1.1547 \tabularnewline
69 & 0.0512 & -0.0777 & 0.0065 & 64 & 5.3333 & 2.3094 \tabularnewline
70 & 0.0538 & -0.1058 & 0.0088 & 121 & 10.0833 & 3.1754 \tabularnewline
71 & 0.0434 & -0.0882 & 0.0074 & 144 & 12 & 3.4641 \tabularnewline
72 & 0.0436 & -0.0845 & 0.007 & 144 & 12 & 3.4641 \tabularnewline
73 & 0.0458 & -0.1206 & 0.01 & 289 & 24.0833 & 4.9075 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2910&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]62[/C][C]0.0134[/C][C]-0.036[/C][C]0.003[/C][C]25[/C][C]2.0833[/C][C]1.4434[/C][/ROW]
[ROW][C]63[/C][C]0.0204[/C][C]-0.0465[/C][C]0.0039[/C][C]36[/C][C]3[/C][C]1.7321[/C][/ROW]
[ROW][C]64[/C][C]0.0261[/C][C]-0.0645[/C][C]0.0054[/C][C]64[/C][C]5.3333[/C][C]2.3094[/C][/ROW]
[ROW][C]65[/C][C]0.0319[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]66[/C][C]0.0363[/C][C]-0.0348[/C][C]0.0029[/C][C]16[/C][C]1.3333[/C][C]1.1547[/C][/ROW]
[ROW][C]67[/C][C]0.0419[/C][C]-0.0367[/C][C]0.0031[/C][C]16[/C][C]1.3333[/C][C]1.1547[/C][/ROW]
[ROW][C]68[/C][C]0.0466[/C][C]-0.0377[/C][C]0.0031[/C][C]16[/C][C]1.3333[/C][C]1.1547[/C][/ROW]
[ROW][C]69[/C][C]0.0512[/C][C]-0.0777[/C][C]0.0065[/C][C]64[/C][C]5.3333[/C][C]2.3094[/C][/ROW]
[ROW][C]70[/C][C]0.0538[/C][C]-0.1058[/C][C]0.0088[/C][C]121[/C][C]10.0833[/C][C]3.1754[/C][/ROW]
[ROW][C]71[/C][C]0.0434[/C][C]-0.0882[/C][C]0.0074[/C][C]144[/C][C]12[/C][C]3.4641[/C][/ROW]
[ROW][C]72[/C][C]0.0436[/C][C]-0.0845[/C][C]0.007[/C][C]144[/C][C]12[/C][C]3.4641[/C][/ROW]
[ROW][C]73[/C][C]0.0458[/C][C]-0.1206[/C][C]0.01[/C][C]289[/C][C]24.0833[/C][C]4.9075[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2910&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2910&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
620.0134-0.0360.003252.08331.4434
630.0204-0.04650.00393631.7321
640.0261-0.06450.0054645.33332.3094
650.031900000
660.0363-0.03480.0029161.33331.1547
670.0419-0.03670.0031161.33331.1547
680.0466-0.03770.0031161.33331.1547
690.0512-0.07770.0065645.33332.3094
700.0538-0.10580.008812110.08333.1754
710.0434-0.08820.0074144123.4641
720.0436-0.08450.007144123.4641
730.0458-0.12060.0128924.08334.9075



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