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:36:51 +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/t1273750650pqsy5o7h1mdc0b5.htm/, Retrieved Sun, 05 May 2024 21:52:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75871, Retrieved Sun, 05 May 2024 21:52:22 +0000
QR Codes:

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

Post a new message
Dataseries X:
209
175
247,5
177
188,775
194,825
182,275
145,25
286,3
257,75
335
234,15
276,275
327,052
375,325
199,75
215,875
225
228,1
128,5
242,5
327,275
346,8
221,175
245,275
230,725
335,3
97,25
254,5
71,25
273,575
98,325
184,55
203,025
121,655
135
98,75
69,1
256,525
97,775
202,7
81,9
165,25
75,825
300
238,5
194,5
140,75
211,75
274,8




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=75871&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=75871&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75871&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
51189.53178125135137.003461783742389.7988738380176289.264688664684342.060100718959
52189.53178125135136.242717316545089.3014497676743289.762112735027342.820845186156
53189.53178125135135.485729681032788.8064821575341290.257080345167343.577832821669
54189.53178125135134.732443763100488.3139349704207290.749627532281344.331118739601
55189.53178125135133.982805783180787.823773041765291.239789460936345.080756719521
56189.53178125135133.236763251436787.3359620503076291.727600452394345.826799251265
57189.53178125135132.494264924870386.8504684900528292.213094012648346.569297577831
58189.53178125135131.755260766248986.367259643413292.696302859288347.308301736452
59189.53178125135131.019701904753785.8863035554772293.177258947224348.043860597948
60189.53178125135130.287540598264785.4075690093512293.65599349335348.776021904437

\begin{tabular}{lllllllll}
\hline
Demand Forecast \tabularnewline
Point & Forecast & 95% LB & 80% LB & 80% UB & 95% UB \tabularnewline
51 & 189.531781251351 & 37.0034617837423 & 89.7988738380176 & 289.264688664684 & 342.060100718959 \tabularnewline
52 & 189.531781251351 & 36.2427173165450 & 89.3014497676743 & 289.762112735027 & 342.820845186156 \tabularnewline
53 & 189.531781251351 & 35.4857296810327 & 88.8064821575341 & 290.257080345167 & 343.577832821669 \tabularnewline
54 & 189.531781251351 & 34.7324437631004 & 88.3139349704207 & 290.749627532281 & 344.331118739601 \tabularnewline
55 & 189.531781251351 & 33.9828057831807 & 87.823773041765 & 291.239789460936 & 345.080756719521 \tabularnewline
56 & 189.531781251351 & 33.2367632514367 & 87.3359620503076 & 291.727600452394 & 345.826799251265 \tabularnewline
57 & 189.531781251351 & 32.4942649248703 & 86.8504684900528 & 292.213094012648 & 346.569297577831 \tabularnewline
58 & 189.531781251351 & 31.7552607662489 & 86.367259643413 & 292.696302859288 & 347.308301736452 \tabularnewline
59 & 189.531781251351 & 31.0197019047537 & 85.8863035554772 & 293.177258947224 & 348.043860597948 \tabularnewline
60 & 189.531781251351 & 30.2875405982647 & 85.4075690093512 & 293.65599349335 & 348.776021904437 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75871&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]189.531781251351[/C][C]37.0034617837423[/C][C]89.7988738380176[/C][C]289.264688664684[/C][C]342.060100718959[/C][/ROW]
[ROW][C]52[/C][C]189.531781251351[/C][C]36.2427173165450[/C][C]89.3014497676743[/C][C]289.762112735027[/C][C]342.820845186156[/C][/ROW]
[ROW][C]53[/C][C]189.531781251351[/C][C]35.4857296810327[/C][C]88.8064821575341[/C][C]290.257080345167[/C][C]343.577832821669[/C][/ROW]
[ROW][C]54[/C][C]189.531781251351[/C][C]34.7324437631004[/C][C]88.3139349704207[/C][C]290.749627532281[/C][C]344.331118739601[/C][/ROW]
[ROW][C]55[/C][C]189.531781251351[/C][C]33.9828057831807[/C][C]87.823773041765[/C][C]291.239789460936[/C][C]345.080756719521[/C][/ROW]
[ROW][C]56[/C][C]189.531781251351[/C][C]33.2367632514367[/C][C]87.3359620503076[/C][C]291.727600452394[/C][C]345.826799251265[/C][/ROW]
[ROW][C]57[/C][C]189.531781251351[/C][C]32.4942649248703[/C][C]86.8504684900528[/C][C]292.213094012648[/C][C]346.569297577831[/C][/ROW]
[ROW][C]58[/C][C]189.531781251351[/C][C]31.7552607662489[/C][C]86.367259643413[/C][C]292.696302859288[/C][C]347.308301736452[/C][/ROW]
[ROW][C]59[/C][C]189.531781251351[/C][C]31.0197019047537[/C][C]85.8863035554772[/C][C]293.177258947224[/C][C]348.043860597948[/C][/ROW]
[ROW][C]60[/C][C]189.531781251351[/C][C]30.2875405982647[/C][C]85.4075690093512[/C][C]293.65599349335[/C][C]348.776021904437[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75871&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75871&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
51189.53178125135137.003461783742389.7988738380176289.264688664684342.060100718959
52189.53178125135136.242717316545089.3014497676743289.762112735027342.820845186156
53189.53178125135135.485729681032788.8064821575341290.257080345167343.577832821669
54189.53178125135134.732443763100488.3139349704207290.749627532281344.331118739601
55189.53178125135133.982805783180787.823773041765291.239789460936345.080756719521
56189.53178125135133.236763251436787.3359620503076291.727600452394345.826799251265
57189.53178125135132.494264924870386.8504684900528292.213094012648346.569297577831
58189.53178125135131.755260766248986.367259643413292.696302859288347.308301736452
59189.53178125135131.019701904753785.8863035554772293.177258947224348.043860597948
60189.53178125135130.287540598264785.4075690093512293.65599349335348.776021904437







Actuals and Interpolation
TimeActualForecast
1209NA
2175209
3247.5205.6
4177209.79
5188.775206.511
6194.825204.7374
7182.275203.74616
8145.25201.599044
9286.3195.9641396
10257.75204.99772564
11335210.272953076
12234.15222.7456577684
13276.275223.88609199156
14327.052229.124982792404
15375.325238.917684513164
16199.75252.558416061847
17215.875247.277574455663
18225244.137317010096
19228.1242.223585309087
20128.5240.811226778178
21242.5229.58010410036
22327.275230.872093690324
23346.8240.512384321292
24221.175251.141145889163
25245.275248.144531300246
26230.725247.857578170222
27335.3246.144320353200
2897.25255.059888317880
29254.5239.278899486092
3071.25240.801009537482
31273.575223.845908583734
3298.325228.818817725361
33184.55215.769435952825
34203.025212.647492357542
35121.655211.685243121788
36135202.682218809609
3798.75195.913996928648
3869.1186.197597235784
39256.525174.487837512205
4097.775182.691553760985
41202.7174.199898384886
4281.9177.049908546398
43165.25167.534917691758
4475.825167.306425922582
45300158.158283330324
46238.5172.342454997291
47194.5178.958209497562
48140.75180.512388547806
49211.75176.536149693025
50274.8180.057534723723

\begin{tabular}{lllllllll}
\hline
Actuals and Interpolation \tabularnewline
Time & Actual & Forecast \tabularnewline
1 & 209 & NA \tabularnewline
2 & 175 & 209 \tabularnewline
3 & 247.5 & 205.6 \tabularnewline
4 & 177 & 209.79 \tabularnewline
5 & 188.775 & 206.511 \tabularnewline
6 & 194.825 & 204.7374 \tabularnewline
7 & 182.275 & 203.74616 \tabularnewline
8 & 145.25 & 201.599044 \tabularnewline
9 & 286.3 & 195.9641396 \tabularnewline
10 & 257.75 & 204.99772564 \tabularnewline
11 & 335 & 210.272953076 \tabularnewline
12 & 234.15 & 222.7456577684 \tabularnewline
13 & 276.275 & 223.88609199156 \tabularnewline
14 & 327.052 & 229.124982792404 \tabularnewline
15 & 375.325 & 238.917684513164 \tabularnewline
16 & 199.75 & 252.558416061847 \tabularnewline
17 & 215.875 & 247.277574455663 \tabularnewline
18 & 225 & 244.137317010096 \tabularnewline
19 & 228.1 & 242.223585309087 \tabularnewline
20 & 128.5 & 240.811226778178 \tabularnewline
21 & 242.5 & 229.58010410036 \tabularnewline
22 & 327.275 & 230.872093690324 \tabularnewline
23 & 346.8 & 240.512384321292 \tabularnewline
24 & 221.175 & 251.141145889163 \tabularnewline
25 & 245.275 & 248.144531300246 \tabularnewline
26 & 230.725 & 247.857578170222 \tabularnewline
27 & 335.3 & 246.144320353200 \tabularnewline
28 & 97.25 & 255.059888317880 \tabularnewline
29 & 254.5 & 239.278899486092 \tabularnewline
30 & 71.25 & 240.801009537482 \tabularnewline
31 & 273.575 & 223.845908583734 \tabularnewline
32 & 98.325 & 228.818817725361 \tabularnewline
33 & 184.55 & 215.769435952825 \tabularnewline
34 & 203.025 & 212.647492357542 \tabularnewline
35 & 121.655 & 211.685243121788 \tabularnewline
36 & 135 & 202.682218809609 \tabularnewline
37 & 98.75 & 195.913996928648 \tabularnewline
38 & 69.1 & 186.197597235784 \tabularnewline
39 & 256.525 & 174.487837512205 \tabularnewline
40 & 97.775 & 182.691553760985 \tabularnewline
41 & 202.7 & 174.199898384886 \tabularnewline
42 & 81.9 & 177.049908546398 \tabularnewline
43 & 165.25 & 167.534917691758 \tabularnewline
44 & 75.825 & 167.306425922582 \tabularnewline
45 & 300 & 158.158283330324 \tabularnewline
46 & 238.5 & 172.342454997291 \tabularnewline
47 & 194.5 & 178.958209497562 \tabularnewline
48 & 140.75 & 180.512388547806 \tabularnewline
49 & 211.75 & 176.536149693025 \tabularnewline
50 & 274.8 & 180.057534723723 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75871&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]209[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]175[/C][C]209[/C][/ROW]
[ROW][C]3[/C][C]247.5[/C][C]205.6[/C][/ROW]
[ROW][C]4[/C][C]177[/C][C]209.79[/C][/ROW]
[ROW][C]5[/C][C]188.775[/C][C]206.511[/C][/ROW]
[ROW][C]6[/C][C]194.825[/C][C]204.7374[/C][/ROW]
[ROW][C]7[/C][C]182.275[/C][C]203.74616[/C][/ROW]
[ROW][C]8[/C][C]145.25[/C][C]201.599044[/C][/ROW]
[ROW][C]9[/C][C]286.3[/C][C]195.9641396[/C][/ROW]
[ROW][C]10[/C][C]257.75[/C][C]204.99772564[/C][/ROW]
[ROW][C]11[/C][C]335[/C][C]210.272953076[/C][/ROW]
[ROW][C]12[/C][C]234.15[/C][C]222.7456577684[/C][/ROW]
[ROW][C]13[/C][C]276.275[/C][C]223.88609199156[/C][/ROW]
[ROW][C]14[/C][C]327.052[/C][C]229.124982792404[/C][/ROW]
[ROW][C]15[/C][C]375.325[/C][C]238.917684513164[/C][/ROW]
[ROW][C]16[/C][C]199.75[/C][C]252.558416061847[/C][/ROW]
[ROW][C]17[/C][C]215.875[/C][C]247.277574455663[/C][/ROW]
[ROW][C]18[/C][C]225[/C][C]244.137317010096[/C][/ROW]
[ROW][C]19[/C][C]228.1[/C][C]242.223585309087[/C][/ROW]
[ROW][C]20[/C][C]128.5[/C][C]240.811226778178[/C][/ROW]
[ROW][C]21[/C][C]242.5[/C][C]229.58010410036[/C][/ROW]
[ROW][C]22[/C][C]327.275[/C][C]230.872093690324[/C][/ROW]
[ROW][C]23[/C][C]346.8[/C][C]240.512384321292[/C][/ROW]
[ROW][C]24[/C][C]221.175[/C][C]251.141145889163[/C][/ROW]
[ROW][C]25[/C][C]245.275[/C][C]248.144531300246[/C][/ROW]
[ROW][C]26[/C][C]230.725[/C][C]247.857578170222[/C][/ROW]
[ROW][C]27[/C][C]335.3[/C][C]246.144320353200[/C][/ROW]
[ROW][C]28[/C][C]97.25[/C][C]255.059888317880[/C][/ROW]
[ROW][C]29[/C][C]254.5[/C][C]239.278899486092[/C][/ROW]
[ROW][C]30[/C][C]71.25[/C][C]240.801009537482[/C][/ROW]
[ROW][C]31[/C][C]273.575[/C][C]223.845908583734[/C][/ROW]
[ROW][C]32[/C][C]98.325[/C][C]228.818817725361[/C][/ROW]
[ROW][C]33[/C][C]184.55[/C][C]215.769435952825[/C][/ROW]
[ROW][C]34[/C][C]203.025[/C][C]212.647492357542[/C][/ROW]
[ROW][C]35[/C][C]121.655[/C][C]211.685243121788[/C][/ROW]
[ROW][C]36[/C][C]135[/C][C]202.682218809609[/C][/ROW]
[ROW][C]37[/C][C]98.75[/C][C]195.913996928648[/C][/ROW]
[ROW][C]38[/C][C]69.1[/C][C]186.197597235784[/C][/ROW]
[ROW][C]39[/C][C]256.525[/C][C]174.487837512205[/C][/ROW]
[ROW][C]40[/C][C]97.775[/C][C]182.691553760985[/C][/ROW]
[ROW][C]41[/C][C]202.7[/C][C]174.199898384886[/C][/ROW]
[ROW][C]42[/C][C]81.9[/C][C]177.049908546398[/C][/ROW]
[ROW][C]43[/C][C]165.25[/C][C]167.534917691758[/C][/ROW]
[ROW][C]44[/C][C]75.825[/C][C]167.306425922582[/C][/ROW]
[ROW][C]45[/C][C]300[/C][C]158.158283330324[/C][/ROW]
[ROW][C]46[/C][C]238.5[/C][C]172.342454997291[/C][/ROW]
[ROW][C]47[/C][C]194.5[/C][C]178.958209497562[/C][/ROW]
[ROW][C]48[/C][C]140.75[/C][C]180.512388547806[/C][/ROW]
[ROW][C]49[/C][C]211.75[/C][C]176.536149693025[/C][/ROW]
[ROW][C]50[/C][C]274.8[/C][C]180.057534723723[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75871&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75871&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
1209NA
2175209
3247.5205.6
4177209.79
5188.775206.511
6194.825204.7374
7182.275203.74616
8145.25201.599044
9286.3195.9641396
10257.75204.99772564
11335210.272953076
12234.15222.7456577684
13276.275223.88609199156
14327.052229.124982792404
15375.325238.917684513164
16199.75252.558416061847
17215.875247.277574455663
18225244.137317010096
19228.1242.223585309087
20128.5240.811226778178
21242.5229.58010410036
22327.275230.872093690324
23346.8240.512384321292
24221.175251.141145889163
25245.275248.144531300246
26230.725247.857578170222
27335.3246.144320353200
2897.25255.059888317880
29254.5239.278899486092
3071.25240.801009537482
31273.575223.845908583734
3298.325228.818817725361
33184.55215.769435952825
34203.025212.647492357542
35121.655211.685243121788
36135202.682218809609
3798.75195.913996928648
3869.1186.197597235784
39256.525174.487837512205
4097.775182.691553760985
41202.7174.199898384886
4281.9177.049908546398
43165.25167.534917691758
4475.825167.306425922582
45300158.158283330324
46238.5172.342454997291
47194.5178.958209497562
48140.75180.512388547806
49211.75176.536149693025
50274.8180.057534723723







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

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