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 14:12:12 +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/t1273759962nebcbvogvaad144.htm/, Retrieved Mon, 06 May 2024 00:07:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75956, Retrieved Mon, 06 May 2024 00:07:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsB580,steven,coomans,thesis,Arima,per3maand
Estimated Impact111
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 14:12:12] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
210.5
186.8666667
204.6083333
275.6333333
326.2173333
213.5416667
199.7
298.4166667
270.4333333
141
185.4833333
153.2266667
141.4583333
127.4583333
180.3583333
191.25
162.1833333




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

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







Demand Forecast
PointForecast95% LB80% LB80% UB95% UB
18162.183333346.478323905050386.5278941689346237.838772431065277.888342694950
19162.1833333-1.4482602208441655.1903852135551269.176281386445325.814926820844
20162.1833333-38.223621662287131.1442688560601293.22239774394362.590288262287
21162.1833333-69.226685489899310.8724550378692313.494211562131393.593352089899
22162.1833333-96.5409330443592-6.98737146465987331.35403806466420.907599644359
23162.1833333-121.234900401560-23.1338888373018347.500555437302445.60156700156
24162.1833333-143.943347003429-37.9821439701837362.348810570184468.310013603429
25162.1833333-165.079853741688-51.8025628728898376.16922947289489.446520341688
26162.1833333-184.931694884849-64.7829840931962389.149650693196509.298361484849
27162.1833333-203.708033079222-77.0601717343968401.426838334397528.074699679222
28162.1833333-221.566769227594-88.7373716473155413.104038247316545.933435827594
29162.1833333-238.630576624574-99.8947955878798424.26146218788562.997243224574
30162.1833333-254.997010901534-110.596231754801434.962898354801579.363677501534
31162.1833333-270.745169789362-120.893399374377445.260065974377595.111836389362
32162.1833333-285.940241159413-130.828922504625455.195589104625610.306907759413
33162.1833333-300.636704279799-140.438423224262464.805089824262625.003370879799
34162.1833333-314.880641848461-149.752033389870474.11869998987639.247308448461
35162.1833333-328.711447262532-158.795510959335483.162177559335653.078113862533
36162.1833333-342.16310991401-167.591080401507491.957747001507666.52977651401
37162.1833333-355.265199388718-176.158076229320500.52474282932679.631865988718
38162.1833333-368.043630537933-184.513443253231508.880109853231692.410297137933
39162.1833333-380.52126625659-192.672130716711517.038797316711704.88793285659
40162.1833333-392.718398161494-200.64740659483525.01407319483717.085064761494
41162.1833333-404.653134103121-208.451110974604532.817777574604729.019800703121

\begin{tabular}{lllllllll}
\hline
Demand Forecast \tabularnewline
Point & Forecast & 95% LB & 80% LB & 80% UB & 95% UB \tabularnewline
18 & 162.1833333 & 46.4783239050503 & 86.5278941689346 & 237.838772431065 & 277.888342694950 \tabularnewline
19 & 162.1833333 & -1.44826022084416 & 55.1903852135551 & 269.176281386445 & 325.814926820844 \tabularnewline
20 & 162.1833333 & -38.2236216622871 & 31.1442688560601 & 293.22239774394 & 362.590288262287 \tabularnewline
21 & 162.1833333 & -69.2266854898993 & 10.8724550378692 & 313.494211562131 & 393.593352089899 \tabularnewline
22 & 162.1833333 & -96.5409330443592 & -6.98737146465987 & 331.35403806466 & 420.907599644359 \tabularnewline
23 & 162.1833333 & -121.234900401560 & -23.1338888373018 & 347.500555437302 & 445.60156700156 \tabularnewline
24 & 162.1833333 & -143.943347003429 & -37.9821439701837 & 362.348810570184 & 468.310013603429 \tabularnewline
25 & 162.1833333 & -165.079853741688 & -51.8025628728898 & 376.16922947289 & 489.446520341688 \tabularnewline
26 & 162.1833333 & -184.931694884849 & -64.7829840931962 & 389.149650693196 & 509.298361484849 \tabularnewline
27 & 162.1833333 & -203.708033079222 & -77.0601717343968 & 401.426838334397 & 528.074699679222 \tabularnewline
28 & 162.1833333 & -221.566769227594 & -88.7373716473155 & 413.104038247316 & 545.933435827594 \tabularnewline
29 & 162.1833333 & -238.630576624574 & -99.8947955878798 & 424.26146218788 & 562.997243224574 \tabularnewline
30 & 162.1833333 & -254.997010901534 & -110.596231754801 & 434.962898354801 & 579.363677501534 \tabularnewline
31 & 162.1833333 & -270.745169789362 & -120.893399374377 & 445.260065974377 & 595.111836389362 \tabularnewline
32 & 162.1833333 & -285.940241159413 & -130.828922504625 & 455.195589104625 & 610.306907759413 \tabularnewline
33 & 162.1833333 & -300.636704279799 & -140.438423224262 & 464.805089824262 & 625.003370879799 \tabularnewline
34 & 162.1833333 & -314.880641848461 & -149.752033389870 & 474.11869998987 & 639.247308448461 \tabularnewline
35 & 162.1833333 & -328.711447262532 & -158.795510959335 & 483.162177559335 & 653.078113862533 \tabularnewline
36 & 162.1833333 & -342.16310991401 & -167.591080401507 & 491.957747001507 & 666.52977651401 \tabularnewline
37 & 162.1833333 & -355.265199388718 & -176.158076229320 & 500.52474282932 & 679.631865988718 \tabularnewline
38 & 162.1833333 & -368.043630537933 & -184.513443253231 & 508.880109853231 & 692.410297137933 \tabularnewline
39 & 162.1833333 & -380.52126625659 & -192.672130716711 & 517.038797316711 & 704.88793285659 \tabularnewline
40 & 162.1833333 & -392.718398161494 & -200.64740659483 & 525.01407319483 & 717.085064761494 \tabularnewline
41 & 162.1833333 & -404.653134103121 & -208.451110974604 & 532.817777574604 & 729.019800703121 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75956&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]18[/C][C]162.1833333[/C][C]46.4783239050503[/C][C]86.5278941689346[/C][C]237.838772431065[/C][C]277.888342694950[/C][/ROW]
[ROW][C]19[/C][C]162.1833333[/C][C]-1.44826022084416[/C][C]55.1903852135551[/C][C]269.176281386445[/C][C]325.814926820844[/C][/ROW]
[ROW][C]20[/C][C]162.1833333[/C][C]-38.2236216622871[/C][C]31.1442688560601[/C][C]293.22239774394[/C][C]362.590288262287[/C][/ROW]
[ROW][C]21[/C][C]162.1833333[/C][C]-69.2266854898993[/C][C]10.8724550378692[/C][C]313.494211562131[/C][C]393.593352089899[/C][/ROW]
[ROW][C]22[/C][C]162.1833333[/C][C]-96.5409330443592[/C][C]-6.98737146465987[/C][C]331.35403806466[/C][C]420.907599644359[/C][/ROW]
[ROW][C]23[/C][C]162.1833333[/C][C]-121.234900401560[/C][C]-23.1338888373018[/C][C]347.500555437302[/C][C]445.60156700156[/C][/ROW]
[ROW][C]24[/C][C]162.1833333[/C][C]-143.943347003429[/C][C]-37.9821439701837[/C][C]362.348810570184[/C][C]468.310013603429[/C][/ROW]
[ROW][C]25[/C][C]162.1833333[/C][C]-165.079853741688[/C][C]-51.8025628728898[/C][C]376.16922947289[/C][C]489.446520341688[/C][/ROW]
[ROW][C]26[/C][C]162.1833333[/C][C]-184.931694884849[/C][C]-64.7829840931962[/C][C]389.149650693196[/C][C]509.298361484849[/C][/ROW]
[ROW][C]27[/C][C]162.1833333[/C][C]-203.708033079222[/C][C]-77.0601717343968[/C][C]401.426838334397[/C][C]528.074699679222[/C][/ROW]
[ROW][C]28[/C][C]162.1833333[/C][C]-221.566769227594[/C][C]-88.7373716473155[/C][C]413.104038247316[/C][C]545.933435827594[/C][/ROW]
[ROW][C]29[/C][C]162.1833333[/C][C]-238.630576624574[/C][C]-99.8947955878798[/C][C]424.26146218788[/C][C]562.997243224574[/C][/ROW]
[ROW][C]30[/C][C]162.1833333[/C][C]-254.997010901534[/C][C]-110.596231754801[/C][C]434.962898354801[/C][C]579.363677501534[/C][/ROW]
[ROW][C]31[/C][C]162.1833333[/C][C]-270.745169789362[/C][C]-120.893399374377[/C][C]445.260065974377[/C][C]595.111836389362[/C][/ROW]
[ROW][C]32[/C][C]162.1833333[/C][C]-285.940241159413[/C][C]-130.828922504625[/C][C]455.195589104625[/C][C]610.306907759413[/C][/ROW]
[ROW][C]33[/C][C]162.1833333[/C][C]-300.636704279799[/C][C]-140.438423224262[/C][C]464.805089824262[/C][C]625.003370879799[/C][/ROW]
[ROW][C]34[/C][C]162.1833333[/C][C]-314.880641848461[/C][C]-149.752033389870[/C][C]474.11869998987[/C][C]639.247308448461[/C][/ROW]
[ROW][C]35[/C][C]162.1833333[/C][C]-328.711447262532[/C][C]-158.795510959335[/C][C]483.162177559335[/C][C]653.078113862533[/C][/ROW]
[ROW][C]36[/C][C]162.1833333[/C][C]-342.16310991401[/C][C]-167.591080401507[/C][C]491.957747001507[/C][C]666.52977651401[/C][/ROW]
[ROW][C]37[/C][C]162.1833333[/C][C]-355.265199388718[/C][C]-176.158076229320[/C][C]500.52474282932[/C][C]679.631865988718[/C][/ROW]
[ROW][C]38[/C][C]162.1833333[/C][C]-368.043630537933[/C][C]-184.513443253231[/C][C]508.880109853231[/C][C]692.410297137933[/C][/ROW]
[ROW][C]39[/C][C]162.1833333[/C][C]-380.52126625659[/C][C]-192.672130716711[/C][C]517.038797316711[/C][C]704.88793285659[/C][/ROW]
[ROW][C]40[/C][C]162.1833333[/C][C]-392.718398161494[/C][C]-200.64740659483[/C][C]525.01407319483[/C][C]717.085064761494[/C][/ROW]
[ROW][C]41[/C][C]162.1833333[/C][C]-404.653134103121[/C][C]-208.451110974604[/C][C]532.817777574604[/C][C]729.019800703121[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75956&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75956&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
18162.183333346.478323905050386.5278941689346237.838772431065277.888342694950
19162.1833333-1.4482602208441655.1903852135551269.176281386445325.814926820844
20162.1833333-38.223621662287131.1442688560601293.22239774394362.590288262287
21162.1833333-69.226685489899310.8724550378692313.494211562131393.593352089899
22162.1833333-96.5409330443592-6.98737146465987331.35403806466420.907599644359
23162.1833333-121.234900401560-23.1338888373018347.500555437302445.60156700156
24162.1833333-143.943347003429-37.9821439701837362.348810570184468.310013603429
25162.1833333-165.079853741688-51.8025628728898376.16922947289489.446520341688
26162.1833333-184.931694884849-64.7829840931962389.149650693196509.298361484849
27162.1833333-203.708033079222-77.0601717343968401.426838334397528.074699679222
28162.1833333-221.566769227594-88.7373716473155413.104038247316545.933435827594
29162.1833333-238.630576624574-99.8947955878798424.26146218788562.997243224574
30162.1833333-254.997010901534-110.596231754801434.962898354801579.363677501534
31162.1833333-270.745169789362-120.893399374377445.260065974377595.111836389362
32162.1833333-285.940241159413-130.828922504625455.195589104625610.306907759413
33162.1833333-300.636704279799-140.438423224262464.805089824262625.003370879799
34162.1833333-314.880641848461-149.752033389870474.11869998987639.247308448461
35162.1833333-328.711447262532-158.795510959335483.162177559335653.078113862533
36162.1833333-342.16310991401-167.591080401507491.957747001507666.52977651401
37162.1833333-355.265199388718-176.158076229320500.52474282932679.631865988718
38162.1833333-368.043630537933-184.513443253231508.880109853231692.410297137933
39162.1833333-380.52126625659-192.672130716711517.038797316711704.88793285659
40162.1833333-392.718398161494-200.64740659483525.01407319483717.085064761494
41162.1833333-404.653134103121-208.451110974604532.817777574604729.019800703121







Actuals and Interpolation
TimeActualForecast
1210.5210.28950010525
2186.8666667210.500000000102
3204.6083333186.8666667
4275.6333333204.6083333
5326.2173333275.6333333
6213.5416667326.2173333
7199.7213.5416667
8298.4166667199.7
9270.4333333298.4166667
10141270.4333333
11185.4833333141
12153.2266667185.4833333
13141.4583333153.2266667
14127.4583333141.4583333
15180.3583333127.4583333
16191.25180.3583333
17162.1833333191.25

\begin{tabular}{lllllllll}
\hline
Actuals and Interpolation \tabularnewline
Time & Actual & Forecast \tabularnewline
1 & 210.5 & 210.28950010525 \tabularnewline
2 & 186.8666667 & 210.500000000102 \tabularnewline
3 & 204.6083333 & 186.8666667 \tabularnewline
4 & 275.6333333 & 204.6083333 \tabularnewline
5 & 326.2173333 & 275.6333333 \tabularnewline
6 & 213.5416667 & 326.2173333 \tabularnewline
7 & 199.7 & 213.5416667 \tabularnewline
8 & 298.4166667 & 199.7 \tabularnewline
9 & 270.4333333 & 298.4166667 \tabularnewline
10 & 141 & 270.4333333 \tabularnewline
11 & 185.4833333 & 141 \tabularnewline
12 & 153.2266667 & 185.4833333 \tabularnewline
13 & 141.4583333 & 153.2266667 \tabularnewline
14 & 127.4583333 & 141.4583333 \tabularnewline
15 & 180.3583333 & 127.4583333 \tabularnewline
16 & 191.25 & 180.3583333 \tabularnewline
17 & 162.1833333 & 191.25 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75956&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]210.5[/C][C]210.28950010525[/C][/ROW]
[ROW][C]2[/C][C]186.8666667[/C][C]210.500000000102[/C][/ROW]
[ROW][C]3[/C][C]204.6083333[/C][C]186.8666667[/C][/ROW]
[ROW][C]4[/C][C]275.6333333[/C][C]204.6083333[/C][/ROW]
[ROW][C]5[/C][C]326.2173333[/C][C]275.6333333[/C][/ROW]
[ROW][C]6[/C][C]213.5416667[/C][C]326.2173333[/C][/ROW]
[ROW][C]7[/C][C]199.7[/C][C]213.5416667[/C][/ROW]
[ROW][C]8[/C][C]298.4166667[/C][C]199.7[/C][/ROW]
[ROW][C]9[/C][C]270.4333333[/C][C]298.4166667[/C][/ROW]
[ROW][C]10[/C][C]141[/C][C]270.4333333[/C][/ROW]
[ROW][C]11[/C][C]185.4833333[/C][C]141[/C][/ROW]
[ROW][C]12[/C][C]153.2266667[/C][C]185.4833333[/C][/ROW]
[ROW][C]13[/C][C]141.4583333[/C][C]153.2266667[/C][/ROW]
[ROW][C]14[/C][C]127.4583333[/C][C]141.4583333[/C][/ROW]
[ROW][C]15[/C][C]180.3583333[/C][C]127.4583333[/C][/ROW]
[ROW][C]16[/C][C]191.25[/C][C]180.3583333[/C][/ROW]
[ROW][C]17[/C][C]162.1833333[/C][C]191.25[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75956&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75956&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
1210.5210.28950010525
2186.8666667210.500000000102
3204.6083333186.8666667
4275.6333333204.6083333
5326.2173333275.6333333
6213.5416667326.2173333
7199.7213.5416667
8298.4166667199.7
9270.4333333298.4166667
10141270.4333333
11185.4833333141
12153.2266667185.4833333
13141.4583333153.2266667
14127.4583333141.4583333
15180.3583333127.4583333
16191.25180.3583333
17162.1833333191.25







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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75956&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 = ARIMA ; par3 = NA ; par4 = NA ; par5 = ZZZ ; par6 = 12 ; par7 = dum ; par8 = dumresult ; par9 = 3 ; par10 = 0.1 ;
Parameters (R input):
par1 = Input box ; par2 = ARIMA ; 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