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:45:10 +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/t12737511438zzuxszgv2visge.htm/, Retrieved Mon, 06 May 2024 03:32:43 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75877, Retrieved Mon, 06 May 2024 03:32:43 +0000
QR Codes:

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

Post a new message
Dataseries X:
594,25
853,75
766,5
758,05
756,85
685,4
696,525
610,025
708,325
619,1
740,525
730,5
489,75
766,525
780,125
804,975
529,25
743,75
771,15
830,5
600
856,1
702,75
533,775
311,25
590
738
797,05
531,3
820
533,25
633,25
634,275
747,3
220,375
195,75
123,25
161,75
126,75
285,1
461,5
463,625
325,875
177
223
168,45
251,75
131,5
110,375
164,125




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

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







Demand Forecast
PointForecast95% LB80% LB80% UB95% UB
51295.983680018390-60.617620993295662.8146222236816529.152737813099652.584981030077
52295.983680018390-62.396192131343261.6516770653132530.315682971468654.363552168124
53295.983680018390-64.165980040996260.4944749513008531.47288508548656.133340077777
54295.983680018390-65.927113575450859.3429316290683532.624428407713657.894473612232
55295.983680018390-67.67971846784258.1969648861375533.770395150643659.647078504623
56295.983680018390-69.423917435998157.0564944816334534.910865555147661.391277472779
57295.983680018390-71.15983028271955.9214420807159536.045917956065663.1271903195
58295.983680018390-72.887573991803654.7917311917901537.175628844991664.854934028584
59295.983680018390-74.607262820051553.6672871063505538.30007293043666.574622856832
60295.983680018390-76.319008385437152.5480368413265539.419323195454668.286368422218

\begin{tabular}{lllllllll}
\hline
Demand Forecast \tabularnewline
Point & Forecast & 95% LB & 80% LB & 80% UB & 95% UB \tabularnewline
51 & 295.983680018390 & -60.6176209932956 & 62.8146222236816 & 529.152737813099 & 652.584981030077 \tabularnewline
52 & 295.983680018390 & -62.3961921313432 & 61.6516770653132 & 530.315682971468 & 654.363552168124 \tabularnewline
53 & 295.983680018390 & -64.1659800409962 & 60.4944749513008 & 531.47288508548 & 656.133340077777 \tabularnewline
54 & 295.983680018390 & -65.9271135754508 & 59.3429316290683 & 532.624428407713 & 657.894473612232 \tabularnewline
55 & 295.983680018390 & -67.679718467842 & 58.1969648861375 & 533.770395150643 & 659.647078504623 \tabularnewline
56 & 295.983680018390 & -69.4239174359981 & 57.0564944816334 & 534.910865555147 & 661.391277472779 \tabularnewline
57 & 295.983680018390 & -71.159830282719 & 55.9214420807159 & 536.045917956065 & 663.1271903195 \tabularnewline
58 & 295.983680018390 & -72.8875739918036 & 54.7917311917901 & 537.175628844991 & 664.854934028584 \tabularnewline
59 & 295.983680018390 & -74.6072628200515 & 53.6672871063505 & 538.30007293043 & 666.574622856832 \tabularnewline
60 & 295.983680018390 & -76.3190083854371 & 52.5480368413265 & 539.419323195454 & 668.286368422218 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75877&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]295.983680018390[/C][C]-60.6176209932956[/C][C]62.8146222236816[/C][C]529.152737813099[/C][C]652.584981030077[/C][/ROW]
[ROW][C]52[/C][C]295.983680018390[/C][C]-62.3961921313432[/C][C]61.6516770653132[/C][C]530.315682971468[/C][C]654.363552168124[/C][/ROW]
[ROW][C]53[/C][C]295.983680018390[/C][C]-64.1659800409962[/C][C]60.4944749513008[/C][C]531.47288508548[/C][C]656.133340077777[/C][/ROW]
[ROW][C]54[/C][C]295.983680018390[/C][C]-65.9271135754508[/C][C]59.3429316290683[/C][C]532.624428407713[/C][C]657.894473612232[/C][/ROW]
[ROW][C]55[/C][C]295.983680018390[/C][C]-67.679718467842[/C][C]58.1969648861375[/C][C]533.770395150643[/C][C]659.647078504623[/C][/ROW]
[ROW][C]56[/C][C]295.983680018390[/C][C]-69.4239174359981[/C][C]57.0564944816334[/C][C]534.910865555147[/C][C]661.391277472779[/C][/ROW]
[ROW][C]57[/C][C]295.983680018390[/C][C]-71.159830282719[/C][C]55.9214420807159[/C][C]536.045917956065[/C][C]663.1271903195[/C][/ROW]
[ROW][C]58[/C][C]295.983680018390[/C][C]-72.8875739918036[/C][C]54.7917311917901[/C][C]537.175628844991[/C][C]664.854934028584[/C][/ROW]
[ROW][C]59[/C][C]295.983680018390[/C][C]-74.6072628200515[/C][C]53.6672871063505[/C][C]538.30007293043[/C][C]666.574622856832[/C][/ROW]
[ROW][C]60[/C][C]295.983680018390[/C][C]-76.3190083854371[/C][C]52.5480368413265[/C][C]539.419323195454[/C][C]668.286368422218[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75877&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75877&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
51295.983680018390-60.617620993295662.8146222236816529.152737813099652.584981030077
52295.983680018390-62.396192131343261.6516770653132530.315682971468654.363552168124
53295.983680018390-64.165980040996260.4944749513008531.47288508548656.133340077777
54295.983680018390-65.927113575450859.3429316290683532.624428407713657.894473612232
55295.983680018390-67.67971846784258.1969648861375533.770395150643659.647078504623
56295.983680018390-69.423917435998157.0564944816334534.910865555147661.391277472779
57295.983680018390-71.15983028271955.9214420807159536.045917956065663.1271903195
58295.983680018390-72.887573991803654.7917311917901537.175628844991664.854934028584
59295.983680018390-74.607262820051553.6672871063505538.30007293043666.574622856832
60295.983680018390-76.319008385437152.5480368413265539.419323195454668.286368422218







Actuals and Interpolation
TimeActualForecast
1594.25NA
2853.75594.25
3766.5620.2
4758.05634.83
5756.85647.152
6685.4658.1218
7696.525660.84962
8610.025664.417158
9708.325658.9779422
10619.1663.91264798
11740.525659.431383182
12730.5667.5407448638
13489.75673.83667037742
14766.525655.428003339678
15780.125666.53770300571
16804.975677.896432705139
17529.25690.604289434625
18743.75674.468860491163
19771.15681.396974442046
20830.5690.372276997842
21600704.385049298058
22856.1693.946544368252
23702.75710.161889931427
24533.775709.420700938284
25311.25691.856130844456
26590653.79551776001
27738647.415965984009
28797.05656.474369385608
29531.3670.531932447048
30820656.608739202343
31533.25672.947865282109
32633.25658.978078753898
33634.275656.405270878508
34747.3654.192243790657
35220.375663.503019411592
36195.75619.190217470432
37123.25576.846195723389
38161.75531.486576151050
39126.75494.512918535945
40285.1457.736626682351
41461.5440.472964014116
42463.625442.575667612704
43325.875444.680600851434
44177432.800040766290
45223407.220036689661
46168.45388.798033020695
47251.75366.763229718626
48131.5355.261906746763
49110.375332.885716072087
50164.125310.634644464878

\begin{tabular}{lllllllll}
\hline
Actuals and Interpolation \tabularnewline
Time & Actual & Forecast \tabularnewline
1 & 594.25 & NA \tabularnewline
2 & 853.75 & 594.25 \tabularnewline
3 & 766.5 & 620.2 \tabularnewline
4 & 758.05 & 634.83 \tabularnewline
5 & 756.85 & 647.152 \tabularnewline
6 & 685.4 & 658.1218 \tabularnewline
7 & 696.525 & 660.84962 \tabularnewline
8 & 610.025 & 664.417158 \tabularnewline
9 & 708.325 & 658.9779422 \tabularnewline
10 & 619.1 & 663.91264798 \tabularnewline
11 & 740.525 & 659.431383182 \tabularnewline
12 & 730.5 & 667.5407448638 \tabularnewline
13 & 489.75 & 673.83667037742 \tabularnewline
14 & 766.525 & 655.428003339678 \tabularnewline
15 & 780.125 & 666.53770300571 \tabularnewline
16 & 804.975 & 677.896432705139 \tabularnewline
17 & 529.25 & 690.604289434625 \tabularnewline
18 & 743.75 & 674.468860491163 \tabularnewline
19 & 771.15 & 681.396974442046 \tabularnewline
20 & 830.5 & 690.372276997842 \tabularnewline
21 & 600 & 704.385049298058 \tabularnewline
22 & 856.1 & 693.946544368252 \tabularnewline
23 & 702.75 & 710.161889931427 \tabularnewline
24 & 533.775 & 709.420700938284 \tabularnewline
25 & 311.25 & 691.856130844456 \tabularnewline
26 & 590 & 653.79551776001 \tabularnewline
27 & 738 & 647.415965984009 \tabularnewline
28 & 797.05 & 656.474369385608 \tabularnewline
29 & 531.3 & 670.531932447048 \tabularnewline
30 & 820 & 656.608739202343 \tabularnewline
31 & 533.25 & 672.947865282109 \tabularnewline
32 & 633.25 & 658.978078753898 \tabularnewline
33 & 634.275 & 656.405270878508 \tabularnewline
34 & 747.3 & 654.192243790657 \tabularnewline
35 & 220.375 & 663.503019411592 \tabularnewline
36 & 195.75 & 619.190217470432 \tabularnewline
37 & 123.25 & 576.846195723389 \tabularnewline
38 & 161.75 & 531.486576151050 \tabularnewline
39 & 126.75 & 494.512918535945 \tabularnewline
40 & 285.1 & 457.736626682351 \tabularnewline
41 & 461.5 & 440.472964014116 \tabularnewline
42 & 463.625 & 442.575667612704 \tabularnewline
43 & 325.875 & 444.680600851434 \tabularnewline
44 & 177 & 432.800040766290 \tabularnewline
45 & 223 & 407.220036689661 \tabularnewline
46 & 168.45 & 388.798033020695 \tabularnewline
47 & 251.75 & 366.763229718626 \tabularnewline
48 & 131.5 & 355.261906746763 \tabularnewline
49 & 110.375 & 332.885716072087 \tabularnewline
50 & 164.125 & 310.634644464878 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75877&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]594.25[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]853.75[/C][C]594.25[/C][/ROW]
[ROW][C]3[/C][C]766.5[/C][C]620.2[/C][/ROW]
[ROW][C]4[/C][C]758.05[/C][C]634.83[/C][/ROW]
[ROW][C]5[/C][C]756.85[/C][C]647.152[/C][/ROW]
[ROW][C]6[/C][C]685.4[/C][C]658.1218[/C][/ROW]
[ROW][C]7[/C][C]696.525[/C][C]660.84962[/C][/ROW]
[ROW][C]8[/C][C]610.025[/C][C]664.417158[/C][/ROW]
[ROW][C]9[/C][C]708.325[/C][C]658.9779422[/C][/ROW]
[ROW][C]10[/C][C]619.1[/C][C]663.91264798[/C][/ROW]
[ROW][C]11[/C][C]740.525[/C][C]659.431383182[/C][/ROW]
[ROW][C]12[/C][C]730.5[/C][C]667.5407448638[/C][/ROW]
[ROW][C]13[/C][C]489.75[/C][C]673.83667037742[/C][/ROW]
[ROW][C]14[/C][C]766.525[/C][C]655.428003339678[/C][/ROW]
[ROW][C]15[/C][C]780.125[/C][C]666.53770300571[/C][/ROW]
[ROW][C]16[/C][C]804.975[/C][C]677.896432705139[/C][/ROW]
[ROW][C]17[/C][C]529.25[/C][C]690.604289434625[/C][/ROW]
[ROW][C]18[/C][C]743.75[/C][C]674.468860491163[/C][/ROW]
[ROW][C]19[/C][C]771.15[/C][C]681.396974442046[/C][/ROW]
[ROW][C]20[/C][C]830.5[/C][C]690.372276997842[/C][/ROW]
[ROW][C]21[/C][C]600[/C][C]704.385049298058[/C][/ROW]
[ROW][C]22[/C][C]856.1[/C][C]693.946544368252[/C][/ROW]
[ROW][C]23[/C][C]702.75[/C][C]710.161889931427[/C][/ROW]
[ROW][C]24[/C][C]533.775[/C][C]709.420700938284[/C][/ROW]
[ROW][C]25[/C][C]311.25[/C][C]691.856130844456[/C][/ROW]
[ROW][C]26[/C][C]590[/C][C]653.79551776001[/C][/ROW]
[ROW][C]27[/C][C]738[/C][C]647.415965984009[/C][/ROW]
[ROW][C]28[/C][C]797.05[/C][C]656.474369385608[/C][/ROW]
[ROW][C]29[/C][C]531.3[/C][C]670.531932447048[/C][/ROW]
[ROW][C]30[/C][C]820[/C][C]656.608739202343[/C][/ROW]
[ROW][C]31[/C][C]533.25[/C][C]672.947865282109[/C][/ROW]
[ROW][C]32[/C][C]633.25[/C][C]658.978078753898[/C][/ROW]
[ROW][C]33[/C][C]634.275[/C][C]656.405270878508[/C][/ROW]
[ROW][C]34[/C][C]747.3[/C][C]654.192243790657[/C][/ROW]
[ROW][C]35[/C][C]220.375[/C][C]663.503019411592[/C][/ROW]
[ROW][C]36[/C][C]195.75[/C][C]619.190217470432[/C][/ROW]
[ROW][C]37[/C][C]123.25[/C][C]576.846195723389[/C][/ROW]
[ROW][C]38[/C][C]161.75[/C][C]531.486576151050[/C][/ROW]
[ROW][C]39[/C][C]126.75[/C][C]494.512918535945[/C][/ROW]
[ROW][C]40[/C][C]285.1[/C][C]457.736626682351[/C][/ROW]
[ROW][C]41[/C][C]461.5[/C][C]440.472964014116[/C][/ROW]
[ROW][C]42[/C][C]463.625[/C][C]442.575667612704[/C][/ROW]
[ROW][C]43[/C][C]325.875[/C][C]444.680600851434[/C][/ROW]
[ROW][C]44[/C][C]177[/C][C]432.800040766290[/C][/ROW]
[ROW][C]45[/C][C]223[/C][C]407.220036689661[/C][/ROW]
[ROW][C]46[/C][C]168.45[/C][C]388.798033020695[/C][/ROW]
[ROW][C]47[/C][C]251.75[/C][C]366.763229718626[/C][/ROW]
[ROW][C]48[/C][C]131.5[/C][C]355.261906746763[/C][/ROW]
[ROW][C]49[/C][C]110.375[/C][C]332.885716072087[/C][/ROW]
[ROW][C]50[/C][C]164.125[/C][C]310.634644464878[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75877&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75877&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
1594.25NA
2853.75594.25
3766.5620.2
4758.05634.83
5756.85647.152
6685.4658.1218
7696.525660.84962
8610.025664.417158
9708.325658.9779422
10619.1663.91264798
11740.525659.431383182
12730.5667.5407448638
13489.75673.83667037742
14766.525655.428003339678
15780.125666.53770300571
16804.975677.896432705139
17529.25690.604289434625
18743.75674.468860491163
19771.15681.396974442046
20830.5690.372276997842
21600704.385049298058
22856.1693.946544368252
23702.75710.161889931427
24533.775709.420700938284
25311.25691.856130844456
26590653.79551776001
27738647.415965984009
28797.05656.474369385608
29531.3670.531932447048
30820656.608739202343
31533.25672.947865282109
32633.25658.978078753898
33634.275656.405270878508
34747.3654.192243790657
35220.375663.503019411592
36195.75619.190217470432
37123.25576.846195723389
38161.75531.486576151050
39126.75494.512918535945
40285.1457.736626682351
41461.5440.472964014116
42463.625442.575667612704
43325.875444.680600851434
44177432.800040766290
45223407.220036689661
46168.45388.798033020695
47251.75366.763229718626
48131.5355.261906746763
49110.375332.885716072087
50164.125310.634644464878







\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=75877&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=75877&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75877&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