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:35:04 +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/t12737505503yu72c62f4r2qnp.htm/, Retrieved Mon, 06 May 2024 08:16:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75870, Retrieved Mon, 06 May 2024 08:16:27 +0000
QR Codes:

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

Post a new message
Dataseries X:
387
295,5
343,35
264,025
322,5
392,5
315,75
274,4
361,875
411,276
518,775
392,55
467
382,852
449,25
564,252
417
450,8
538,675
394
532
461,4
523
405,9
386,25
384,5
382
381,75
151,5
287,775
247,6
290,35
266,55
318,025
213,3
148,75
273
282,25
191,25
142,25
259,25
272,75
173,75
204,75
185,525
267,175
190,25
127,25
183,5
254,125




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75870&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
51233.90655471722162.4929529129367121.825224916933345.987884517508405.320156521505
52233.90655471722161.638016927081121.266212322949346.546897111492406.17509250736
53233.90655471722160.787302924741120.709960335602347.10314909884407.0258065097
54233.90655471722159.9407489678633120.156428455775347.656680978666407.872360466578
55233.90655471722159.0982946181672119.605577165002348.207532269439408.714814816274
56233.90655471722158.2598808867905119.057367892538348.755741541903409.553228547651
57233.90655471722157.4254501860877118.511762983846349.301346450595410.387659248354
58233.90655471722156.5949462834697117.968725670413349.844383764028411.218163150972
59233.90655471722155.7683142571807117.428220040832350.384889393609412.044795177261
60233.90655471722154.945500453914116.890211013092350.922898421350412.867608980527

\begin{tabular}{lllllllll}
\hline
Demand Forecast \tabularnewline
Point & Forecast & 95% LB & 80% LB & 80% UB & 95% UB \tabularnewline
51 & 233.906554717221 & 62.4929529129367 & 121.825224916933 & 345.987884517508 & 405.320156521505 \tabularnewline
52 & 233.906554717221 & 61.638016927081 & 121.266212322949 & 346.546897111492 & 406.17509250736 \tabularnewline
53 & 233.906554717221 & 60.787302924741 & 120.709960335602 & 347.10314909884 & 407.0258065097 \tabularnewline
54 & 233.906554717221 & 59.9407489678633 & 120.156428455775 & 347.656680978666 & 407.872360466578 \tabularnewline
55 & 233.906554717221 & 59.0982946181672 & 119.605577165002 & 348.207532269439 & 408.714814816274 \tabularnewline
56 & 233.906554717221 & 58.2598808867905 & 119.057367892538 & 348.755741541903 & 409.553228547651 \tabularnewline
57 & 233.906554717221 & 57.4254501860877 & 118.511762983846 & 349.301346450595 & 410.387659248354 \tabularnewline
58 & 233.906554717221 & 56.5949462834697 & 117.968725670413 & 349.844383764028 & 411.218163150972 \tabularnewline
59 & 233.906554717221 & 55.7683142571807 & 117.428220040832 & 350.384889393609 & 412.044795177261 \tabularnewline
60 & 233.906554717221 & 54.945500453914 & 116.890211013092 & 350.922898421350 & 412.867608980527 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75870&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]233.906554717221[/C][C]62.4929529129367[/C][C]121.825224916933[/C][C]345.987884517508[/C][C]405.320156521505[/C][/ROW]
[ROW][C]52[/C][C]233.906554717221[/C][C]61.638016927081[/C][C]121.266212322949[/C][C]346.546897111492[/C][C]406.17509250736[/C][/ROW]
[ROW][C]53[/C][C]233.906554717221[/C][C]60.787302924741[/C][C]120.709960335602[/C][C]347.10314909884[/C][C]407.0258065097[/C][/ROW]
[ROW][C]54[/C][C]233.906554717221[/C][C]59.9407489678633[/C][C]120.156428455775[/C][C]347.656680978666[/C][C]407.872360466578[/C][/ROW]
[ROW][C]55[/C][C]233.906554717221[/C][C]59.0982946181672[/C][C]119.605577165002[/C][C]348.207532269439[/C][C]408.714814816274[/C][/ROW]
[ROW][C]56[/C][C]233.906554717221[/C][C]58.2598808867905[/C][C]119.057367892538[/C][C]348.755741541903[/C][C]409.553228547651[/C][/ROW]
[ROW][C]57[/C][C]233.906554717221[/C][C]57.4254501860877[/C][C]118.511762983846[/C][C]349.301346450595[/C][C]410.387659248354[/C][/ROW]
[ROW][C]58[/C][C]233.906554717221[/C][C]56.5949462834697[/C][C]117.968725670413[/C][C]349.844383764028[/C][C]411.218163150972[/C][/ROW]
[ROW][C]59[/C][C]233.906554717221[/C][C]55.7683142571807[/C][C]117.428220040832[/C][C]350.384889393609[/C][C]412.044795177261[/C][/ROW]
[ROW][C]60[/C][C]233.906554717221[/C][C]54.945500453914[/C][C]116.890211013092[/C][C]350.922898421350[/C][C]412.867608980527[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75870&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75870&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
51233.90655471722162.4929529129367121.825224916933345.987884517508405.320156521505
52233.90655471722161.638016927081121.266212322949346.546897111492406.17509250736
53233.90655471722160.787302924741120.709960335602347.10314909884407.0258065097
54233.90655471722159.9407489678633120.156428455775347.656680978666407.872360466578
55233.90655471722159.0982946181672119.605577165002348.207532269439408.714814816274
56233.90655471722158.2598808867905119.057367892538348.755741541903409.553228547651
57233.90655471722157.4254501860877118.511762983846349.301346450595410.387659248354
58233.90655471722156.5949462834697117.968725670413349.844383764028411.218163150972
59233.90655471722155.7683142571807117.428220040832350.384889393609412.044795177261
60233.90655471722154.945500453914116.890211013092350.922898421350412.867608980527







Actuals and Interpolation
TimeActualForecast
1387NA
2295.5387
3343.35377.85
4264.025374.4
5322.5363.3625
6392.5359.27625
7315.75362.598625
8274.4357.9137625
9361.875349.56238625
10411.276350.793647625
11518.775356.8418828625
12392.55373.03519457625
13467374.986675118625
14382.852384.188007606763
15449.25384.054406846086
16564.252390.573966161478
17417407.94176954533
18450.8408.847592590797
19538.675413.042833331717
20394425.606049998546
21532422.445444998691
22461.4433.400900498822
23523436.20081044894
24405.9444.880729404046
25386.25440.982656463641
26384.5435.509390817277
27382430.408451735549
28381.75425.567606561994
29151.5421.185845905795
30287.775394.217261315216
31247.6383.573035183694
32290.35369.975731665325
33266.55362.013158498792
34318.025352.466842648913
35213.3349.022658384022
36148.75335.450392545619
37273316.780353291058
38282.25312.402317961952
39191.25309.387086165757
40142.25297.573377549181
41259.25282.041039794263
42272.75279.761935814837
43173.75279.060742233353
44204.75268.529668010018
45185.525262.151701209016
46267.175254.489031088114
47190.25255.757627979303
48127.25249.206865181373
49183.5237.011178663235
50254.125231.660060796912

\begin{tabular}{lllllllll}
\hline
Actuals and Interpolation \tabularnewline
Time & Actual & Forecast \tabularnewline
1 & 387 & NA \tabularnewline
2 & 295.5 & 387 \tabularnewline
3 & 343.35 & 377.85 \tabularnewline
4 & 264.025 & 374.4 \tabularnewline
5 & 322.5 & 363.3625 \tabularnewline
6 & 392.5 & 359.27625 \tabularnewline
7 & 315.75 & 362.598625 \tabularnewline
8 & 274.4 & 357.9137625 \tabularnewline
9 & 361.875 & 349.56238625 \tabularnewline
10 & 411.276 & 350.793647625 \tabularnewline
11 & 518.775 & 356.8418828625 \tabularnewline
12 & 392.55 & 373.03519457625 \tabularnewline
13 & 467 & 374.986675118625 \tabularnewline
14 & 382.852 & 384.188007606763 \tabularnewline
15 & 449.25 & 384.054406846086 \tabularnewline
16 & 564.252 & 390.573966161478 \tabularnewline
17 & 417 & 407.94176954533 \tabularnewline
18 & 450.8 & 408.847592590797 \tabularnewline
19 & 538.675 & 413.042833331717 \tabularnewline
20 & 394 & 425.606049998546 \tabularnewline
21 & 532 & 422.445444998691 \tabularnewline
22 & 461.4 & 433.400900498822 \tabularnewline
23 & 523 & 436.20081044894 \tabularnewline
24 & 405.9 & 444.880729404046 \tabularnewline
25 & 386.25 & 440.982656463641 \tabularnewline
26 & 384.5 & 435.509390817277 \tabularnewline
27 & 382 & 430.408451735549 \tabularnewline
28 & 381.75 & 425.567606561994 \tabularnewline
29 & 151.5 & 421.185845905795 \tabularnewline
30 & 287.775 & 394.217261315216 \tabularnewline
31 & 247.6 & 383.573035183694 \tabularnewline
32 & 290.35 & 369.975731665325 \tabularnewline
33 & 266.55 & 362.013158498792 \tabularnewline
34 & 318.025 & 352.466842648913 \tabularnewline
35 & 213.3 & 349.022658384022 \tabularnewline
36 & 148.75 & 335.450392545619 \tabularnewline
37 & 273 & 316.780353291058 \tabularnewline
38 & 282.25 & 312.402317961952 \tabularnewline
39 & 191.25 & 309.387086165757 \tabularnewline
40 & 142.25 & 297.573377549181 \tabularnewline
41 & 259.25 & 282.041039794263 \tabularnewline
42 & 272.75 & 279.761935814837 \tabularnewline
43 & 173.75 & 279.060742233353 \tabularnewline
44 & 204.75 & 268.529668010018 \tabularnewline
45 & 185.525 & 262.151701209016 \tabularnewline
46 & 267.175 & 254.489031088114 \tabularnewline
47 & 190.25 & 255.757627979303 \tabularnewline
48 & 127.25 & 249.206865181373 \tabularnewline
49 & 183.5 & 237.011178663235 \tabularnewline
50 & 254.125 & 231.660060796912 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75870&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]387[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]295.5[/C][C]387[/C][/ROW]
[ROW][C]3[/C][C]343.35[/C][C]377.85[/C][/ROW]
[ROW][C]4[/C][C]264.025[/C][C]374.4[/C][/ROW]
[ROW][C]5[/C][C]322.5[/C][C]363.3625[/C][/ROW]
[ROW][C]6[/C][C]392.5[/C][C]359.27625[/C][/ROW]
[ROW][C]7[/C][C]315.75[/C][C]362.598625[/C][/ROW]
[ROW][C]8[/C][C]274.4[/C][C]357.9137625[/C][/ROW]
[ROW][C]9[/C][C]361.875[/C][C]349.56238625[/C][/ROW]
[ROW][C]10[/C][C]411.276[/C][C]350.793647625[/C][/ROW]
[ROW][C]11[/C][C]518.775[/C][C]356.8418828625[/C][/ROW]
[ROW][C]12[/C][C]392.55[/C][C]373.03519457625[/C][/ROW]
[ROW][C]13[/C][C]467[/C][C]374.986675118625[/C][/ROW]
[ROW][C]14[/C][C]382.852[/C][C]384.188007606763[/C][/ROW]
[ROW][C]15[/C][C]449.25[/C][C]384.054406846086[/C][/ROW]
[ROW][C]16[/C][C]564.252[/C][C]390.573966161478[/C][/ROW]
[ROW][C]17[/C][C]417[/C][C]407.94176954533[/C][/ROW]
[ROW][C]18[/C][C]450.8[/C][C]408.847592590797[/C][/ROW]
[ROW][C]19[/C][C]538.675[/C][C]413.042833331717[/C][/ROW]
[ROW][C]20[/C][C]394[/C][C]425.606049998546[/C][/ROW]
[ROW][C]21[/C][C]532[/C][C]422.445444998691[/C][/ROW]
[ROW][C]22[/C][C]461.4[/C][C]433.400900498822[/C][/ROW]
[ROW][C]23[/C][C]523[/C][C]436.20081044894[/C][/ROW]
[ROW][C]24[/C][C]405.9[/C][C]444.880729404046[/C][/ROW]
[ROW][C]25[/C][C]386.25[/C][C]440.982656463641[/C][/ROW]
[ROW][C]26[/C][C]384.5[/C][C]435.509390817277[/C][/ROW]
[ROW][C]27[/C][C]382[/C][C]430.408451735549[/C][/ROW]
[ROW][C]28[/C][C]381.75[/C][C]425.567606561994[/C][/ROW]
[ROW][C]29[/C][C]151.5[/C][C]421.185845905795[/C][/ROW]
[ROW][C]30[/C][C]287.775[/C][C]394.217261315216[/C][/ROW]
[ROW][C]31[/C][C]247.6[/C][C]383.573035183694[/C][/ROW]
[ROW][C]32[/C][C]290.35[/C][C]369.975731665325[/C][/ROW]
[ROW][C]33[/C][C]266.55[/C][C]362.013158498792[/C][/ROW]
[ROW][C]34[/C][C]318.025[/C][C]352.466842648913[/C][/ROW]
[ROW][C]35[/C][C]213.3[/C][C]349.022658384022[/C][/ROW]
[ROW][C]36[/C][C]148.75[/C][C]335.450392545619[/C][/ROW]
[ROW][C]37[/C][C]273[/C][C]316.780353291058[/C][/ROW]
[ROW][C]38[/C][C]282.25[/C][C]312.402317961952[/C][/ROW]
[ROW][C]39[/C][C]191.25[/C][C]309.387086165757[/C][/ROW]
[ROW][C]40[/C][C]142.25[/C][C]297.573377549181[/C][/ROW]
[ROW][C]41[/C][C]259.25[/C][C]282.041039794263[/C][/ROW]
[ROW][C]42[/C][C]272.75[/C][C]279.761935814837[/C][/ROW]
[ROW][C]43[/C][C]173.75[/C][C]279.060742233353[/C][/ROW]
[ROW][C]44[/C][C]204.75[/C][C]268.529668010018[/C][/ROW]
[ROW][C]45[/C][C]185.525[/C][C]262.151701209016[/C][/ROW]
[ROW][C]46[/C][C]267.175[/C][C]254.489031088114[/C][/ROW]
[ROW][C]47[/C][C]190.25[/C][C]255.757627979303[/C][/ROW]
[ROW][C]48[/C][C]127.25[/C][C]249.206865181373[/C][/ROW]
[ROW][C]49[/C][C]183.5[/C][C]237.011178663235[/C][/ROW]
[ROW][C]50[/C][C]254.125[/C][C]231.660060796912[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75870&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75870&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
1387NA
2295.5387
3343.35377.85
4264.025374.4
5322.5363.3625
6392.5359.27625
7315.75362.598625
8274.4357.9137625
9361.875349.56238625
10411.276350.793647625
11518.775356.8418828625
12392.55373.03519457625
13467374.986675118625
14382.852384.188007606763
15449.25384.054406846086
16564.252390.573966161478
17417407.94176954533
18450.8408.847592590797
19538.675413.042833331717
20394425.606049998546
21532422.445444998691
22461.4433.400900498822
23523436.20081044894
24405.9444.880729404046
25386.25440.982656463641
26384.5435.509390817277
27382430.408451735549
28381.75425.567606561994
29151.5421.185845905795
30287.775394.217261315216
31247.6383.573035183694
32290.35369.975731665325
33266.55362.013158498792
34318.025352.466842648913
35213.3349.022658384022
36148.75335.450392545619
37273316.780353291058
38282.25312.402317961952
39191.25309.387086165757
40142.25297.573377549181
41259.25282.041039794263
42272.75279.761935814837
43173.75279.060742233353
44204.75268.529668010018
45185.525262.151701209016
46267.175254.489031088114
47190.25255.757627979303
48127.25249.206865181373
49183.5237.011178663235
50254.125231.660060796912







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

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