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:15:39 +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/t1273760166w27uy3y3fv8ns4w.htm/, Retrieved Mon, 06 May 2024 08:31:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75959, Retrieved Mon, 06 May 2024 08:31:45 +0000
QR Codes:

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

Post a new message
Dataseries X:
721.8416667
644.5833333
554.4333333
562.9666667
711.675
531.1083333
379.95
336.25
370.175
493.0833333
657.7666667
533.4583333
402.2833333
267.3416667
447.5416667
297.7583333
268.4166667




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75959&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
18268.416666726.5474662167836110.266897121950426.56643627805510.285867183216
19268.4166667-73.638036943701844.7591176765413492.074215723459610.471370343702
20268.4166667-150.513077322994-5.50676941449393542.340102814494687.346410722994
21268.4166667-215.321734266433-47.8828724561006584.716205856101752.155067666433
22268.4166667-272.419307243997-85.2169687024488622.050302102449809.252640643997
23268.4166667-324.039458978807-118.969571704957655.802905104957860.872792378807
24268.4166667-371.509087584614-150.008293505690686.84162690569908.342420984614
25268.4166667-415.692740587404-178.898431346917715.731764746917952.526073987404
26268.4166667-457.190934749649-206.032642034151742.865975434151994.02426814965
27268.4166667-496.440902670862-231.696816597445768.5301499974451033.27423607086
28268.4166667-533.772719646076-256.106779671556792.9401130715561070.60605304608
29268.4166667-569.442821345987-279.430205528988816.2635389289881106.27615474599
30268.4166667-603.655137597716-301.800436716475838.6337701164751140.48847099772
31268.4166667-636.575013921134-323.325586858309860.1589202583091173.40834732113
32268.4166667-668.338718732-344.094757082329880.928090482331205.172052132
33268.4166667-699.060135232866-364.182411612201901.0157450122011235.89346863287
34268.4166667-728.835594475995-383.651537937396920.4848713373961265.66892787600
35268.4166667-757.747444231105-402.555980370376939.3893137703761294.58077763111
36268.4166667-785.86673576132-420.942196834964957.7755302349641322.70006916132
37268.4166667-813.255281187994-438.850604104898975.6839375048981350.08861458799
38268.4166667-839.967252792789-456.31662353124993.149956931241376.80058619279
39268.4166667-866.050443062371-473.3715049413311010.204838341331402.88377646237
40268.4166667-891.547269495853-490.0429836470571026.876317047061428.38060289585
41268.4166667-916.495584657613-506.3558101099151043.189143509911453.32891805761

\begin{tabular}{lllllllll}
\hline
Demand Forecast \tabularnewline
Point & Forecast & 95% LB & 80% LB & 80% UB & 95% UB \tabularnewline
18 & 268.4166667 & 26.5474662167836 & 110.266897121950 & 426.56643627805 & 510.285867183216 \tabularnewline
19 & 268.4166667 & -73.6380369437018 & 44.7591176765413 & 492.074215723459 & 610.471370343702 \tabularnewline
20 & 268.4166667 & -150.513077322994 & -5.50676941449393 & 542.340102814494 & 687.346410722994 \tabularnewline
21 & 268.4166667 & -215.321734266433 & -47.8828724561006 & 584.716205856101 & 752.155067666433 \tabularnewline
22 & 268.4166667 & -272.419307243997 & -85.2169687024488 & 622.050302102449 & 809.252640643997 \tabularnewline
23 & 268.4166667 & -324.039458978807 & -118.969571704957 & 655.802905104957 & 860.872792378807 \tabularnewline
24 & 268.4166667 & -371.509087584614 & -150.008293505690 & 686.84162690569 & 908.342420984614 \tabularnewline
25 & 268.4166667 & -415.692740587404 & -178.898431346917 & 715.731764746917 & 952.526073987404 \tabularnewline
26 & 268.4166667 & -457.190934749649 & -206.032642034151 & 742.865975434151 & 994.02426814965 \tabularnewline
27 & 268.4166667 & -496.440902670862 & -231.696816597445 & 768.530149997445 & 1033.27423607086 \tabularnewline
28 & 268.4166667 & -533.772719646076 & -256.106779671556 & 792.940113071556 & 1070.60605304608 \tabularnewline
29 & 268.4166667 & -569.442821345987 & -279.430205528988 & 816.263538928988 & 1106.27615474599 \tabularnewline
30 & 268.4166667 & -603.655137597716 & -301.800436716475 & 838.633770116475 & 1140.48847099772 \tabularnewline
31 & 268.4166667 & -636.575013921134 & -323.325586858309 & 860.158920258309 & 1173.40834732113 \tabularnewline
32 & 268.4166667 & -668.338718732 & -344.094757082329 & 880.92809048233 & 1205.172052132 \tabularnewline
33 & 268.4166667 & -699.060135232866 & -364.182411612201 & 901.015745012201 & 1235.89346863287 \tabularnewline
34 & 268.4166667 & -728.835594475995 & -383.651537937396 & 920.484871337396 & 1265.66892787600 \tabularnewline
35 & 268.4166667 & -757.747444231105 & -402.555980370376 & 939.389313770376 & 1294.58077763111 \tabularnewline
36 & 268.4166667 & -785.86673576132 & -420.942196834964 & 957.775530234964 & 1322.70006916132 \tabularnewline
37 & 268.4166667 & -813.255281187994 & -438.850604104898 & 975.683937504898 & 1350.08861458799 \tabularnewline
38 & 268.4166667 & -839.967252792789 & -456.31662353124 & 993.14995693124 & 1376.80058619279 \tabularnewline
39 & 268.4166667 & -866.050443062371 & -473.371504941331 & 1010.20483834133 & 1402.88377646237 \tabularnewline
40 & 268.4166667 & -891.547269495853 & -490.042983647057 & 1026.87631704706 & 1428.38060289585 \tabularnewline
41 & 268.4166667 & -916.495584657613 & -506.355810109915 & 1043.18914350991 & 1453.32891805761 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75959&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]268.4166667[/C][C]26.5474662167836[/C][C]110.266897121950[/C][C]426.56643627805[/C][C]510.285867183216[/C][/ROW]
[ROW][C]19[/C][C]268.4166667[/C][C]-73.6380369437018[/C][C]44.7591176765413[/C][C]492.074215723459[/C][C]610.471370343702[/C][/ROW]
[ROW][C]20[/C][C]268.4166667[/C][C]-150.513077322994[/C][C]-5.50676941449393[/C][C]542.340102814494[/C][C]687.346410722994[/C][/ROW]
[ROW][C]21[/C][C]268.4166667[/C][C]-215.321734266433[/C][C]-47.8828724561006[/C][C]584.716205856101[/C][C]752.155067666433[/C][/ROW]
[ROW][C]22[/C][C]268.4166667[/C][C]-272.419307243997[/C][C]-85.2169687024488[/C][C]622.050302102449[/C][C]809.252640643997[/C][/ROW]
[ROW][C]23[/C][C]268.4166667[/C][C]-324.039458978807[/C][C]-118.969571704957[/C][C]655.802905104957[/C][C]860.872792378807[/C][/ROW]
[ROW][C]24[/C][C]268.4166667[/C][C]-371.509087584614[/C][C]-150.008293505690[/C][C]686.84162690569[/C][C]908.342420984614[/C][/ROW]
[ROW][C]25[/C][C]268.4166667[/C][C]-415.692740587404[/C][C]-178.898431346917[/C][C]715.731764746917[/C][C]952.526073987404[/C][/ROW]
[ROW][C]26[/C][C]268.4166667[/C][C]-457.190934749649[/C][C]-206.032642034151[/C][C]742.865975434151[/C][C]994.02426814965[/C][/ROW]
[ROW][C]27[/C][C]268.4166667[/C][C]-496.440902670862[/C][C]-231.696816597445[/C][C]768.530149997445[/C][C]1033.27423607086[/C][/ROW]
[ROW][C]28[/C][C]268.4166667[/C][C]-533.772719646076[/C][C]-256.106779671556[/C][C]792.940113071556[/C][C]1070.60605304608[/C][/ROW]
[ROW][C]29[/C][C]268.4166667[/C][C]-569.442821345987[/C][C]-279.430205528988[/C][C]816.263538928988[/C][C]1106.27615474599[/C][/ROW]
[ROW][C]30[/C][C]268.4166667[/C][C]-603.655137597716[/C][C]-301.800436716475[/C][C]838.633770116475[/C][C]1140.48847099772[/C][/ROW]
[ROW][C]31[/C][C]268.4166667[/C][C]-636.575013921134[/C][C]-323.325586858309[/C][C]860.158920258309[/C][C]1173.40834732113[/C][/ROW]
[ROW][C]32[/C][C]268.4166667[/C][C]-668.338718732[/C][C]-344.094757082329[/C][C]880.92809048233[/C][C]1205.172052132[/C][/ROW]
[ROW][C]33[/C][C]268.4166667[/C][C]-699.060135232866[/C][C]-364.182411612201[/C][C]901.015745012201[/C][C]1235.89346863287[/C][/ROW]
[ROW][C]34[/C][C]268.4166667[/C][C]-728.835594475995[/C][C]-383.651537937396[/C][C]920.484871337396[/C][C]1265.66892787600[/C][/ROW]
[ROW][C]35[/C][C]268.4166667[/C][C]-757.747444231105[/C][C]-402.555980370376[/C][C]939.389313770376[/C][C]1294.58077763111[/C][/ROW]
[ROW][C]36[/C][C]268.4166667[/C][C]-785.86673576132[/C][C]-420.942196834964[/C][C]957.775530234964[/C][C]1322.70006916132[/C][/ROW]
[ROW][C]37[/C][C]268.4166667[/C][C]-813.255281187994[/C][C]-438.850604104898[/C][C]975.683937504898[/C][C]1350.08861458799[/C][/ROW]
[ROW][C]38[/C][C]268.4166667[/C][C]-839.967252792789[/C][C]-456.31662353124[/C][C]993.14995693124[/C][C]1376.80058619279[/C][/ROW]
[ROW][C]39[/C][C]268.4166667[/C][C]-866.050443062371[/C][C]-473.371504941331[/C][C]1010.20483834133[/C][C]1402.88377646237[/C][/ROW]
[ROW][C]40[/C][C]268.4166667[/C][C]-891.547269495853[/C][C]-490.042983647057[/C][C]1026.87631704706[/C][C]1428.38060289585[/C][/ROW]
[ROW][C]41[/C][C]268.4166667[/C][C]-916.495584657613[/C][C]-506.355810109915[/C][C]1043.18914350991[/C][C]1453.32891805761[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75959&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75959&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
18268.416666726.5474662167836110.266897121950426.56643627805510.285867183216
19268.4166667-73.638036943701844.7591176765413492.074215723459610.471370343702
20268.4166667-150.513077322994-5.50676941449393542.340102814494687.346410722994
21268.4166667-215.321734266433-47.8828724561006584.716205856101752.155067666433
22268.4166667-272.419307243997-85.2169687024488622.050302102449809.252640643997
23268.4166667-324.039458978807-118.969571704957655.802905104957860.872792378807
24268.4166667-371.509087584614-150.008293505690686.84162690569908.342420984614
25268.4166667-415.692740587404-178.898431346917715.731764746917952.526073987404
26268.4166667-457.190934749649-206.032642034151742.865975434151994.02426814965
27268.4166667-496.440902670862-231.696816597445768.5301499974451033.27423607086
28268.4166667-533.772719646076-256.106779671556792.9401130715561070.60605304608
29268.4166667-569.442821345987-279.430205528988816.2635389289881106.27615474599
30268.4166667-603.655137597716-301.800436716475838.6337701164751140.48847099772
31268.4166667-636.575013921134-323.325586858309860.1589202583091173.40834732113
32268.4166667-668.338718732-344.094757082329880.928090482331205.172052132
33268.4166667-699.060135232866-364.182411612201901.0157450122011235.89346863287
34268.4166667-728.835594475995-383.651537937396920.4848713373961265.66892787600
35268.4166667-757.747444231105-402.555980370376939.3893137703761294.58077763111
36268.4166667-785.86673576132-420.942196834964957.7755302349641322.70006916132
37268.4166667-813.255281187994-438.850604104898975.6839375048981350.08861458799
38268.4166667-839.967252792789-456.31662353124993.149956931241376.80058619279
39268.4166667-866.050443062371-473.3715049413311010.204838341331402.88377646237
40268.4166667-891.547269495853-490.0429836470571026.876317047061428.38060289585
41268.4166667-916.495584657613-506.3558101099151043.189143509911453.32891805761







Actuals and Interpolation
TimeActualForecast
1721.8416667721.11982539422
2644.5833333721.841666700333
3554.4333333644.5833333
4562.9666667554.4333333
5711.675562.9666667
6531.1083333711.675
7379.95531.1083333
8336.25379.95
9370.175336.25
10493.0833333370.175
11657.7666667493.0833333
12533.4583333657.7666667
13402.2833333533.4583333
14267.3416667402.2833333
15447.5416667267.3416667
16297.7583333447.5416667
17268.4166667297.7583333

\begin{tabular}{lllllllll}
\hline
Actuals and Interpolation \tabularnewline
Time & Actual & Forecast \tabularnewline
1 & 721.8416667 & 721.11982539422 \tabularnewline
2 & 644.5833333 & 721.841666700333 \tabularnewline
3 & 554.4333333 & 644.5833333 \tabularnewline
4 & 562.9666667 & 554.4333333 \tabularnewline
5 & 711.675 & 562.9666667 \tabularnewline
6 & 531.1083333 & 711.675 \tabularnewline
7 & 379.95 & 531.1083333 \tabularnewline
8 & 336.25 & 379.95 \tabularnewline
9 & 370.175 & 336.25 \tabularnewline
10 & 493.0833333 & 370.175 \tabularnewline
11 & 657.7666667 & 493.0833333 \tabularnewline
12 & 533.4583333 & 657.7666667 \tabularnewline
13 & 402.2833333 & 533.4583333 \tabularnewline
14 & 267.3416667 & 402.2833333 \tabularnewline
15 & 447.5416667 & 267.3416667 \tabularnewline
16 & 297.7583333 & 447.5416667 \tabularnewline
17 & 268.4166667 & 297.7583333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75959&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]721.8416667[/C][C]721.11982539422[/C][/ROW]
[ROW][C]2[/C][C]644.5833333[/C][C]721.841666700333[/C][/ROW]
[ROW][C]3[/C][C]554.4333333[/C][C]644.5833333[/C][/ROW]
[ROW][C]4[/C][C]562.9666667[/C][C]554.4333333[/C][/ROW]
[ROW][C]5[/C][C]711.675[/C][C]562.9666667[/C][/ROW]
[ROW][C]6[/C][C]531.1083333[/C][C]711.675[/C][/ROW]
[ROW][C]7[/C][C]379.95[/C][C]531.1083333[/C][/ROW]
[ROW][C]8[/C][C]336.25[/C][C]379.95[/C][/ROW]
[ROW][C]9[/C][C]370.175[/C][C]336.25[/C][/ROW]
[ROW][C]10[/C][C]493.0833333[/C][C]370.175[/C][/ROW]
[ROW][C]11[/C][C]657.7666667[/C][C]493.0833333[/C][/ROW]
[ROW][C]12[/C][C]533.4583333[/C][C]657.7666667[/C][/ROW]
[ROW][C]13[/C][C]402.2833333[/C][C]533.4583333[/C][/ROW]
[ROW][C]14[/C][C]267.3416667[/C][C]402.2833333[/C][/ROW]
[ROW][C]15[/C][C]447.5416667[/C][C]267.3416667[/C][/ROW]
[ROW][C]16[/C][C]297.7583333[/C][C]447.5416667[/C][/ROW]
[ROW][C]17[/C][C]268.4166667[/C][C]297.7583333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75959&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75959&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
1721.8416667721.11982539422
2644.5833333721.841666700333
3554.4333333644.5833333
4562.9666667554.4333333
5711.675562.9666667
6531.1083333711.675
7379.95531.1083333
8336.25379.95
9370.175336.25
10493.0833333370.175
11657.7666667493.0833333
12533.4583333657.7666667
13402.2833333533.4583333
14267.3416667402.2833333
15447.5416667267.3416667
16297.7583333447.5416667
17268.4166667297.7583333







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

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