Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software ModulePatrick.Wessarwasp_demand_forecasting_croston.wasp
Title produced by softwareCroston Forecasting
Date of computationThu, 13 May 2010 11:38:32 +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/May/13/t12737507577os8425dyfoi2ay.htm/, Retrieved Sun, 05 May 2024 21:56:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75872, Retrieved Sun, 05 May 2024 21:56:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsB58A,steven,coomans,thesis,croston
Estimated Impact167
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Croston Forecasting] [B58A,steven,cooma...] [2010-05-13 11:38:32] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
797
642,25
726,275
652,75
678,75
602,25
689,775
393
580,525
462,25
725,65
501
675
691
769,025
688,25
518,8
386,275
491,35
269,5
379
375,25
337,5
296
375
399,525
336
483,5
370,25
625,5
736,75
496,05
740,5
690,525
568,75
341,1
519,75
408,75
278,35
217
266
319,025
454,75
378,3
509,575
453,75
252
187,525
401,5
403,75




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Serverwessa.org @ wessa.org

\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 & 4 seconds \tabularnewline
R Server & wessa.org @ wessa.org \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75872&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]wessa.org @ wessa.org[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75872&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75872&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 time4 seconds
R Serverwessa.org @ wessa.org







Demand Forecast
PointForecast95% LB80% LB80% UB95% UB
51396.497040223239120.267909359365215.880519766770577.113560679709672.726171087114
52396.497040223239118.890199412013214.979683652523578.014396793955674.103881034466
53396.497040223239117.519293095323214.08329619325578.910784253229675.474787351156
54396.497040223239116.155090597526213.191292125542579.802788320937676.838989848952
55396.497040223239114.797494523705212.303607766285580.690472680193678.196585922773
56396.497040223239113.446409814646211.420180959601581.573899486878679.547670631833
57396.497040223239112.101743669164210.540951026057582.453129420422680.892336777314
58396.497040223239110.763405469719209.665858714026583.328221732453682.23067497676
59396.497040223239109.431306711146208.794846153094584.199234293385683.562773735333
60396.497040223239108.105360932358207.927856809394585.066223637085684.88871951412

\begin{tabular}{lllllllll}
\hline
Demand Forecast \tabularnewline
Point & Forecast & 95% LB & 80% LB & 80% UB & 95% UB \tabularnewline
51 & 396.497040223239 & 120.267909359365 & 215.880519766770 & 577.113560679709 & 672.726171087114 \tabularnewline
52 & 396.497040223239 & 118.890199412013 & 214.979683652523 & 578.014396793955 & 674.103881034466 \tabularnewline
53 & 396.497040223239 & 117.519293095323 & 214.08329619325 & 578.910784253229 & 675.474787351156 \tabularnewline
54 & 396.497040223239 & 116.155090597526 & 213.191292125542 & 579.802788320937 & 676.838989848952 \tabularnewline
55 & 396.497040223239 & 114.797494523705 & 212.303607766285 & 580.690472680193 & 678.196585922773 \tabularnewline
56 & 396.497040223239 & 113.446409814646 & 211.420180959601 & 581.573899486878 & 679.547670631833 \tabularnewline
57 & 396.497040223239 & 112.101743669164 & 210.540951026057 & 582.453129420422 & 680.892336777314 \tabularnewline
58 & 396.497040223239 & 110.763405469719 & 209.665858714026 & 583.328221732453 & 682.23067497676 \tabularnewline
59 & 396.497040223239 & 109.431306711146 & 208.794846153094 & 584.199234293385 & 683.562773735333 \tabularnewline
60 & 396.497040223239 & 108.105360932358 & 207.927856809394 & 585.066223637085 & 684.88871951412 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75872&T=1

[TABLE]
[ROW][C]Demand Forecast[/C][/ROW]
[ROW][C]Point[/C][C]Forecast[/C][C]95% LB[/C][C]80% LB[/C][C]80% UB[/C][C]95% UB[/C][/ROW]
[ROW][C]51[/C][C]396.497040223239[/C][C]120.267909359365[/C][C]215.880519766770[/C][C]577.113560679709[/C][C]672.726171087114[/C][/ROW]
[ROW][C]52[/C][C]396.497040223239[/C][C]118.890199412013[/C][C]214.979683652523[/C][C]578.014396793955[/C][C]674.103881034466[/C][/ROW]
[ROW][C]53[/C][C]396.497040223239[/C][C]117.519293095323[/C][C]214.08329619325[/C][C]578.910784253229[/C][C]675.474787351156[/C][/ROW]
[ROW][C]54[/C][C]396.497040223239[/C][C]116.155090597526[/C][C]213.191292125542[/C][C]579.802788320937[/C][C]676.838989848952[/C][/ROW]
[ROW][C]55[/C][C]396.497040223239[/C][C]114.797494523705[/C][C]212.303607766285[/C][C]580.690472680193[/C][C]678.196585922773[/C][/ROW]
[ROW][C]56[/C][C]396.497040223239[/C][C]113.446409814646[/C][C]211.420180959601[/C][C]581.573899486878[/C][C]679.547670631833[/C][/ROW]
[ROW][C]57[/C][C]396.497040223239[/C][C]112.101743669164[/C][C]210.540951026057[/C][C]582.453129420422[/C][C]680.892336777314[/C][/ROW]
[ROW][C]58[/C][C]396.497040223239[/C][C]110.763405469719[/C][C]209.665858714026[/C][C]583.328221732453[/C][C]682.23067497676[/C][/ROW]
[ROW][C]59[/C][C]396.497040223239[/C][C]109.431306711146[/C][C]208.794846153094[/C][C]584.199234293385[/C][C]683.562773735333[/C][/ROW]
[ROW][C]60[/C][C]396.497040223239[/C][C]108.105360932358[/C][C]207.927856809394[/C][C]585.066223637085[/C][C]684.88871951412[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75872&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75872&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Demand Forecast
PointForecast95% LB80% LB80% UB95% UB
51396.497040223239120.267909359365215.880519766770577.113560679709672.726171087114
52396.497040223239118.890199412013214.979683652523578.014396793955674.103881034466
53396.497040223239117.519293095323214.08329619325578.910784253229675.474787351156
54396.497040223239116.155090597526213.191292125542579.802788320937676.838989848952
55396.497040223239114.797494523705212.303607766285580.690472680193678.196585922773
56396.497040223239113.446409814646211.420180959601581.573899486878679.547670631833
57396.497040223239112.101743669164210.540951026057582.453129420422680.892336777314
58396.497040223239110.763405469719209.665858714026583.328221732453682.23067497676
59396.497040223239109.431306711146208.794846153094584.199234293385683.562773735333
60396.497040223239108.105360932358207.927856809394585.066223637085684.88871951412







Actuals and Interpolation
TimeActualForecast
1797NA
2642.25797
3726.275781.525
4652.75776
5678.75763.675
6602.25755.1825
7689.775739.88925
8393734.877825
9580.525700.6900425
10462.25688.67353825
11725.65666.031184425
12501671.9930659825
13675654.89375938425
14691656.904383445825
15769.025660.313945101243
16688.25671.185050591118
17518.8672.891545532007
18386.275657.482390978806
19491.35630.361651880925
20269.5616.460486692833
21379581.76443802355
22375.25561.487994221195
23337.5542.864194799075
24296522.327775319168
25375499.694997787251
26399.525487.225498008526
27336478.455448207673
28483.5464.209903386906
29370.25466.138913048215
30625.5456.550021743394
31736.75473.445019569055
32496.05499.775517612149
33740.5499.402965850934
34690.525523.512669265841
35568.75540.213902339257
36341.1543.067512105331
37519.75522.870760894798
38408.75522.558684805318
39278.35511.177816324786
40217487.895034692308
41266460.805531223077
42319.025441.324978100769
43454.75429.094980290692
44378.3431.660482261623
45509.575426.324434035461
46453.75434.649490631915
47252436.559541568723
48187.525418.103587411851
49401.5395.045728670666
50403.75395.691155803599

\begin{tabular}{lllllllll}
\hline
Actuals and Interpolation \tabularnewline
Time & Actual & Forecast \tabularnewline
1 & 797 & NA \tabularnewline
2 & 642.25 & 797 \tabularnewline
3 & 726.275 & 781.525 \tabularnewline
4 & 652.75 & 776 \tabularnewline
5 & 678.75 & 763.675 \tabularnewline
6 & 602.25 & 755.1825 \tabularnewline
7 & 689.775 & 739.88925 \tabularnewline
8 & 393 & 734.877825 \tabularnewline
9 & 580.525 & 700.6900425 \tabularnewline
10 & 462.25 & 688.67353825 \tabularnewline
11 & 725.65 & 666.031184425 \tabularnewline
12 & 501 & 671.9930659825 \tabularnewline
13 & 675 & 654.89375938425 \tabularnewline
14 & 691 & 656.904383445825 \tabularnewline
15 & 769.025 & 660.313945101243 \tabularnewline
16 & 688.25 & 671.185050591118 \tabularnewline
17 & 518.8 & 672.891545532007 \tabularnewline
18 & 386.275 & 657.482390978806 \tabularnewline
19 & 491.35 & 630.361651880925 \tabularnewline
20 & 269.5 & 616.460486692833 \tabularnewline
21 & 379 & 581.76443802355 \tabularnewline
22 & 375.25 & 561.487994221195 \tabularnewline
23 & 337.5 & 542.864194799075 \tabularnewline
24 & 296 & 522.327775319168 \tabularnewline
25 & 375 & 499.694997787251 \tabularnewline
26 & 399.525 & 487.225498008526 \tabularnewline
27 & 336 & 478.455448207673 \tabularnewline
28 & 483.5 & 464.209903386906 \tabularnewline
29 & 370.25 & 466.138913048215 \tabularnewline
30 & 625.5 & 456.550021743394 \tabularnewline
31 & 736.75 & 473.445019569055 \tabularnewline
32 & 496.05 & 499.775517612149 \tabularnewline
33 & 740.5 & 499.402965850934 \tabularnewline
34 & 690.525 & 523.512669265841 \tabularnewline
35 & 568.75 & 540.213902339257 \tabularnewline
36 & 341.1 & 543.067512105331 \tabularnewline
37 & 519.75 & 522.870760894798 \tabularnewline
38 & 408.75 & 522.558684805318 \tabularnewline
39 & 278.35 & 511.177816324786 \tabularnewline
40 & 217 & 487.895034692308 \tabularnewline
41 & 266 & 460.805531223077 \tabularnewline
42 & 319.025 & 441.324978100769 \tabularnewline
43 & 454.75 & 429.094980290692 \tabularnewline
44 & 378.3 & 431.660482261623 \tabularnewline
45 & 509.575 & 426.324434035461 \tabularnewline
46 & 453.75 & 434.649490631915 \tabularnewline
47 & 252 & 436.559541568723 \tabularnewline
48 & 187.525 & 418.103587411851 \tabularnewline
49 & 401.5 & 395.045728670666 \tabularnewline
50 & 403.75 & 395.691155803599 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75872&T=2

[TABLE]
[ROW][C]Actuals and Interpolation[/C][/ROW]
[ROW][C]Time[/C][C]Actual[/C][C]Forecast[/C][/ROW]
[ROW][C]1[/C][C]797[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]642.25[/C][C]797[/C][/ROW]
[ROW][C]3[/C][C]726.275[/C][C]781.525[/C][/ROW]
[ROW][C]4[/C][C]652.75[/C][C]776[/C][/ROW]
[ROW][C]5[/C][C]678.75[/C][C]763.675[/C][/ROW]
[ROW][C]6[/C][C]602.25[/C][C]755.1825[/C][/ROW]
[ROW][C]7[/C][C]689.775[/C][C]739.88925[/C][/ROW]
[ROW][C]8[/C][C]393[/C][C]734.877825[/C][/ROW]
[ROW][C]9[/C][C]580.525[/C][C]700.6900425[/C][/ROW]
[ROW][C]10[/C][C]462.25[/C][C]688.67353825[/C][/ROW]
[ROW][C]11[/C][C]725.65[/C][C]666.031184425[/C][/ROW]
[ROW][C]12[/C][C]501[/C][C]671.9930659825[/C][/ROW]
[ROW][C]13[/C][C]675[/C][C]654.89375938425[/C][/ROW]
[ROW][C]14[/C][C]691[/C][C]656.904383445825[/C][/ROW]
[ROW][C]15[/C][C]769.025[/C][C]660.313945101243[/C][/ROW]
[ROW][C]16[/C][C]688.25[/C][C]671.185050591118[/C][/ROW]
[ROW][C]17[/C][C]518.8[/C][C]672.891545532007[/C][/ROW]
[ROW][C]18[/C][C]386.275[/C][C]657.482390978806[/C][/ROW]
[ROW][C]19[/C][C]491.35[/C][C]630.361651880925[/C][/ROW]
[ROW][C]20[/C][C]269.5[/C][C]616.460486692833[/C][/ROW]
[ROW][C]21[/C][C]379[/C][C]581.76443802355[/C][/ROW]
[ROW][C]22[/C][C]375.25[/C][C]561.487994221195[/C][/ROW]
[ROW][C]23[/C][C]337.5[/C][C]542.864194799075[/C][/ROW]
[ROW][C]24[/C][C]296[/C][C]522.327775319168[/C][/ROW]
[ROW][C]25[/C][C]375[/C][C]499.694997787251[/C][/ROW]
[ROW][C]26[/C][C]399.525[/C][C]487.225498008526[/C][/ROW]
[ROW][C]27[/C][C]336[/C][C]478.455448207673[/C][/ROW]
[ROW][C]28[/C][C]483.5[/C][C]464.209903386906[/C][/ROW]
[ROW][C]29[/C][C]370.25[/C][C]466.138913048215[/C][/ROW]
[ROW][C]30[/C][C]625.5[/C][C]456.550021743394[/C][/ROW]
[ROW][C]31[/C][C]736.75[/C][C]473.445019569055[/C][/ROW]
[ROW][C]32[/C][C]496.05[/C][C]499.775517612149[/C][/ROW]
[ROW][C]33[/C][C]740.5[/C][C]499.402965850934[/C][/ROW]
[ROW][C]34[/C][C]690.525[/C][C]523.512669265841[/C][/ROW]
[ROW][C]35[/C][C]568.75[/C][C]540.213902339257[/C][/ROW]
[ROW][C]36[/C][C]341.1[/C][C]543.067512105331[/C][/ROW]
[ROW][C]37[/C][C]519.75[/C][C]522.870760894798[/C][/ROW]
[ROW][C]38[/C][C]408.75[/C][C]522.558684805318[/C][/ROW]
[ROW][C]39[/C][C]278.35[/C][C]511.177816324786[/C][/ROW]
[ROW][C]40[/C][C]217[/C][C]487.895034692308[/C][/ROW]
[ROW][C]41[/C][C]266[/C][C]460.805531223077[/C][/ROW]
[ROW][C]42[/C][C]319.025[/C][C]441.324978100769[/C][/ROW]
[ROW][C]43[/C][C]454.75[/C][C]429.094980290692[/C][/ROW]
[ROW][C]44[/C][C]378.3[/C][C]431.660482261623[/C][/ROW]
[ROW][C]45[/C][C]509.575[/C][C]426.324434035461[/C][/ROW]
[ROW][C]46[/C][C]453.75[/C][C]434.649490631915[/C][/ROW]
[ROW][C]47[/C][C]252[/C][C]436.559541568723[/C][/ROW]
[ROW][C]48[/C][C]187.525[/C][C]418.103587411851[/C][/ROW]
[ROW][C]49[/C][C]401.5[/C][C]395.045728670666[/C][/ROW]
[ROW][C]50[/C][C]403.75[/C][C]395.691155803599[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75872&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75872&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Actuals and Interpolation
TimeActualForecast
1797NA
2642.25797
3726.275781.525
4652.75776
5678.75763.675
6602.25755.1825
7689.775739.88925
8393734.877825
9580.525700.6900425
10462.25688.67353825
11725.65666.031184425
12501671.9930659825
13675654.89375938425
14691656.904383445825
15769.025660.313945101243
16688.25671.185050591118
17518.8672.891545532007
18386.275657.482390978806
19491.35630.361651880925
20269.5616.460486692833
21379581.76443802355
22375.25561.487994221195
23337.5542.864194799075
24296522.327775319168
25375499.694997787251
26399.525487.225498008526
27336478.455448207673
28483.5464.209903386906
29370.25466.138913048215
30625.5456.550021743394
31736.75473.445019569055
32496.05499.775517612149
33740.5499.402965850934
34690.525523.512669265841
35568.75540.213902339257
36341.1543.067512105331
37519.75522.870760894798
38408.75522.558684805318
39278.35511.177816324786
40217487.895034692308
41266460.805531223077
42319.025441.324978100769
43454.75429.094980290692
44378.3431.660482261623
45509.575426.324434035461
46453.75434.649490631915
47252436.559541568723
48187.525418.103587411851
49401.5395.045728670666
50403.75395.691155803599







\begin{tabular}{lllllllll}
\hline
What is next? \tabularnewline
Simulate Time Series \tabularnewline
Generate Forecasts \tabularnewline
Forecast Analysis \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75872&T=3

[TABLE]
[ROW][C]What is next?[/C][/ROW]
[ROW][C]Simulate Time Series[/C][/ROW]
[ROW][C]Generate Forecasts[/C][/ROW]
[ROW][C]Forecast Analysis[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75872&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75872&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

What is next?
Simulate Time Series
Generate Forecasts
Forecast Analysis



Parameters (Session):
par1 = Input box ; par2 = Croston ; par3 = NA ; par4 = NA ; par5 = ZZZ ; par6 = 12 ; par7 = dum ; par8 = dumresult ; par9 = 3 ; par10 = 0.1 ;
Parameters (R input):
par1 = Input box ; par2 = Croston ; par3 = NA ; par4 = NA ; par5 = ZZZ ; par6 = 12 ; par7 = dum ; par8 = dumresult ; par9 = 3 ; par10 = 0.1 ;
R code (references can be found in the software module):
if(par3!='NA') par3 <- as.numeric(par3) else par3 <- NA
if(par4!='NA') par4 <- as.numeric(par4) else par4 <- NA
par6 <- as.numeric(par6) #Seasonal Period
par9 <- as.numeric(par9) #Forecast Horizon
par10 <- as.numeric(par10) #Alpha
library(forecast)
if (par1 == 'CSV') {
xarr <- read.csv(file=paste('tmp/',par7,'.csv',sep=''),header=T)
numseries <- length(xarr[1,])-1
n <- length(xarr[,1])
nmh <- n - par9
nmhp1 <- nmh + 1
rarr <- array(NA,dim=c(n,numseries))
farr <- array(NA,dim=c(n,numseries))
parr <- array(NA,dim=c(numseries,8))
colnames(parr) = list('ME','RMSE','MAE','MPE','MAPE','MASE','ACF1','TheilU')
for(i in 1:numseries) {
sindex <- i+1
x <- xarr[,sindex]
if(par2=='Croston') {
if (i==1) m <- croston(x,alpha=par10)
if (i==1) mydemand <- m$model$demand[]
fit <- croston(x[1:nmh],h=par9,alpha=par10)
}
if(par2=='ARIMA') {
m <- auto.arima(ts(x,freq=par6),d=par3,D=par4)
mydemand <- forecast(m)
fit <- auto.arima(ts(x[1:nmh],freq=par6),d=par3,D=par4)
}
if(par2=='ETS') {
m <- ets(ts(x,freq=par6),model=par5)
mydemand <- forecast(m)
fit <- ets(ts(x[1:nmh],freq=par6),model=par5)
}
try(rarr[,i] <- mydemand$resid,silent=T)
try(farr[,i] <- mydemand$mean,silent=T)
if (par2!='Croston') parr[i,] <- accuracy(forecast(fit,par9),x[nmhp1:n])
if (par2=='Croston') parr[i,] <- accuracy(fit,x[nmhp1:n])
}
write.csv(farr,file=paste('tmp/',par8,'_f.csv',sep=''))
write.csv(rarr,file=paste('tmp/',par8,'_r.csv',sep=''))
write.csv(parr,file=paste('tmp/',par8,'_p.csv',sep=''))
}
if (par1 == 'Input box') {
numseries <- 1
n <- length(x)
if(par2=='Croston') {
m <- croston(x)
mydemand <- m$model$demand[]
}
if(par2=='ARIMA') {
m <- auto.arima(ts(x,freq=par6),d=par3,D=par4)
mydemand <- forecast(m)
}
if(par2=='ETS') {
m <- ets(ts(x,freq=par6),model=par5)
mydemand <- forecast(m)
}
summary(m)
}
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
if (par2=='Croston') plot(m)
if ((par2=='ARIMA') | par2=='ETS') plot(forecast(m))
plot(mydemand$resid,type='l',main='Residuals', ylab='residual value', xlab='time')
par(op)
dev.off()
bitmap(file='pic2.png')
op <- par(mfrow=c(2,2))
acf(mydemand$resid, lag.max=n/3, main='Residual ACF', ylab='autocorrelation', xlab='time lag')
pacf(mydemand$resid,lag.max=n/3, main='Residual PACF', ylab='partial autocorrelation', xlab='time lag')
cpgram(mydemand$resid, main='Cumulative Periodogram of Residuals')
qqnorm(mydemand$resid); qqline(mydemand$resid, col=2)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Demand Forecast',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Point',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% LB',header=TRUE)
a<-table.element(a,'80% LB',header=TRUE)
a<-table.element(a,'80% UB',header=TRUE)
a<-table.element(a,'95% UB',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(mydemand$mean)) {
a<-table.row.start(a)
a<-table.element(a,i+n,header=TRUE)
a<-table.element(a,as.numeric(mydemand$mean[i]))
a<-table.element(a,as.numeric(mydemand$lower[i,2]))
a<-table.element(a,as.numeric(mydemand$lower[i,1]))
a<-table.element(a,as.numeric(mydemand$upper[i,1]))
a<-table.element(a,as.numeric(mydemand$upper[i,2]))
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,'Actuals and Interpolation',3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time',header=TRUE)
a<-table.element(a,'Actual',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i] - as.numeric(m$resid[i]))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'What is next?',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink(paste('https://automated.biganalytics.eu/Patrick.Wessa/rwasp_demand_forecasting_simulate.wasp',sep=''),'Simulate Time Series','',target=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink(paste('https://automated.biganalytics.eu/Patrick.Wessa/rwasp_demand_forecasting_croston.wasp',sep=''),'Generate Forecasts','',target=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink(paste('https://automated.biganalytics.eu/Patrick.Wessa/rwasp_demand_forecasting_analysis.wasp',sep=''),'Forecast Analysis','',target=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable0.tab')
-SERVER-wessa.org