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:08:42 +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/t127375975722dk35p0s1j3106.htm/, Retrieved Sun, 05 May 2024 20:50:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=75953, Retrieved Sun, 05 May 2024 20:50:12 +0000
QR Codes:

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

Post a new message
Dataseries X:
341.95
326.3416667
317.3416667
440.867
433.034
477.3506667
488.225
463.4333333
384.25
273.675
268.1666667
226.6916667
248.8333333
224.75
188.0083333
194.8916667
145.875




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75953&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
18145.87543.727563744631479.084381456999212.665618543001248.022436255369
19145.8751.4167102860165051.4188014172001240.3311985828290.333289713984
20145.875-31.049549457201630.1902552145703261.559744785430322.799549457202
21145.875-58.419872510737212.2937629139981279.456237086002350.169872510737
22145.875-82.5336111943308-3.47336332140813295.223363321408374.283611194331
23145.875-104.334097359124-17.7279350352248309.477935035225396.084097359124
24145.875-124.381713394528-30.8363665769598322.58636657696416.131713394528
25145.875-143.041579427967-43.0373971655998334.7873971656434.791579427967
26145.875-160.567308766106-54.4968556290029346.246855629003452.317308766106
27145.875-177.143555713826-65.3354809273599357.08548092736468.893555713826
28145.875-192.909719355804-75.644421222888367.394421222888484.659719355804
29145.875-207.974098914403-85.4944895708593377.244489570859499.724098914403
30145.875-222.422819075921-94.941999876746386.691999876746514.172819075921
31145.875-236.325709404920-104.032611238620395.78261123862528.07570940492
32145.875-249.740319474826-112.803953299935404.553953299935541.490319474826
33145.875-262.714745021474-121.287474172004413.037474172004554.464745021475
34145.875-275.289669066932-129.509775053131421.259775053131567.039669066932
35145.875-287.499869141951-137.493595748400429.2435957484579.249869141951
36145.875-299.375351978915-145.258556605515437.008556605515591.125351978915
37145.875-310.942222388662-152.821726642816444.571726642816602.692222388662
38145.875-322.223358685903-160.198065186223451.948065186223613.973358685903
39145.875-333.23894483774-167.400769822447459.150769822447624.98894483774
40145.875-344.006894819073-174.441553870079466.191553870079635.756894819073
41145.875-354.543194718248-181.330870070450473.08087007045646.293194718248

\begin{tabular}{lllllllll}
\hline
Demand Forecast \tabularnewline
Point & Forecast & 95% LB & 80% LB & 80% UB & 95% UB \tabularnewline
18 & 145.875 & 43.7275637446314 & 79.084381456999 & 212.665618543001 & 248.022436255369 \tabularnewline
19 & 145.875 & 1.41671028601650 & 51.4188014172001 & 240.3311985828 & 290.333289713984 \tabularnewline
20 & 145.875 & -31.0495494572016 & 30.1902552145703 & 261.559744785430 & 322.799549457202 \tabularnewline
21 & 145.875 & -58.4198725107372 & 12.2937629139981 & 279.456237086002 & 350.169872510737 \tabularnewline
22 & 145.875 & -82.5336111943308 & -3.47336332140813 & 295.223363321408 & 374.283611194331 \tabularnewline
23 & 145.875 & -104.334097359124 & -17.7279350352248 & 309.477935035225 & 396.084097359124 \tabularnewline
24 & 145.875 & -124.381713394528 & -30.8363665769598 & 322.58636657696 & 416.131713394528 \tabularnewline
25 & 145.875 & -143.041579427967 & -43.0373971655998 & 334.7873971656 & 434.791579427967 \tabularnewline
26 & 145.875 & -160.567308766106 & -54.4968556290029 & 346.246855629003 & 452.317308766106 \tabularnewline
27 & 145.875 & -177.143555713826 & -65.3354809273599 & 357.08548092736 & 468.893555713826 \tabularnewline
28 & 145.875 & -192.909719355804 & -75.644421222888 & 367.394421222888 & 484.659719355804 \tabularnewline
29 & 145.875 & -207.974098914403 & -85.4944895708593 & 377.244489570859 & 499.724098914403 \tabularnewline
30 & 145.875 & -222.422819075921 & -94.941999876746 & 386.691999876746 & 514.172819075921 \tabularnewline
31 & 145.875 & -236.325709404920 & -104.032611238620 & 395.78261123862 & 528.07570940492 \tabularnewline
32 & 145.875 & -249.740319474826 & -112.803953299935 & 404.553953299935 & 541.490319474826 \tabularnewline
33 & 145.875 & -262.714745021474 & -121.287474172004 & 413.037474172004 & 554.464745021475 \tabularnewline
34 & 145.875 & -275.289669066932 & -129.509775053131 & 421.259775053131 & 567.039669066932 \tabularnewline
35 & 145.875 & -287.499869141951 & -137.493595748400 & 429.2435957484 & 579.249869141951 \tabularnewline
36 & 145.875 & -299.375351978915 & -145.258556605515 & 437.008556605515 & 591.125351978915 \tabularnewline
37 & 145.875 & -310.942222388662 & -152.821726642816 & 444.571726642816 & 602.692222388662 \tabularnewline
38 & 145.875 & -322.223358685903 & -160.198065186223 & 451.948065186223 & 613.973358685903 \tabularnewline
39 & 145.875 & -333.23894483774 & -167.400769822447 & 459.150769822447 & 624.98894483774 \tabularnewline
40 & 145.875 & -344.006894819073 & -174.441553870079 & 466.191553870079 & 635.756894819073 \tabularnewline
41 & 145.875 & -354.543194718248 & -181.330870070450 & 473.08087007045 & 646.293194718248 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75953&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]145.875[/C][C]43.7275637446314[/C][C]79.084381456999[/C][C]212.665618543001[/C][C]248.022436255369[/C][/ROW]
[ROW][C]19[/C][C]145.875[/C][C]1.41671028601650[/C][C]51.4188014172001[/C][C]240.3311985828[/C][C]290.333289713984[/C][/ROW]
[ROW][C]20[/C][C]145.875[/C][C]-31.0495494572016[/C][C]30.1902552145703[/C][C]261.559744785430[/C][C]322.799549457202[/C][/ROW]
[ROW][C]21[/C][C]145.875[/C][C]-58.4198725107372[/C][C]12.2937629139981[/C][C]279.456237086002[/C][C]350.169872510737[/C][/ROW]
[ROW][C]22[/C][C]145.875[/C][C]-82.5336111943308[/C][C]-3.47336332140813[/C][C]295.223363321408[/C][C]374.283611194331[/C][/ROW]
[ROW][C]23[/C][C]145.875[/C][C]-104.334097359124[/C][C]-17.7279350352248[/C][C]309.477935035225[/C][C]396.084097359124[/C][/ROW]
[ROW][C]24[/C][C]145.875[/C][C]-124.381713394528[/C][C]-30.8363665769598[/C][C]322.58636657696[/C][C]416.131713394528[/C][/ROW]
[ROW][C]25[/C][C]145.875[/C][C]-143.041579427967[/C][C]-43.0373971655998[/C][C]334.7873971656[/C][C]434.791579427967[/C][/ROW]
[ROW][C]26[/C][C]145.875[/C][C]-160.567308766106[/C][C]-54.4968556290029[/C][C]346.246855629003[/C][C]452.317308766106[/C][/ROW]
[ROW][C]27[/C][C]145.875[/C][C]-177.143555713826[/C][C]-65.3354809273599[/C][C]357.08548092736[/C][C]468.893555713826[/C][/ROW]
[ROW][C]28[/C][C]145.875[/C][C]-192.909719355804[/C][C]-75.644421222888[/C][C]367.394421222888[/C][C]484.659719355804[/C][/ROW]
[ROW][C]29[/C][C]145.875[/C][C]-207.974098914403[/C][C]-85.4944895708593[/C][C]377.244489570859[/C][C]499.724098914403[/C][/ROW]
[ROW][C]30[/C][C]145.875[/C][C]-222.422819075921[/C][C]-94.941999876746[/C][C]386.691999876746[/C][C]514.172819075921[/C][/ROW]
[ROW][C]31[/C][C]145.875[/C][C]-236.325709404920[/C][C]-104.032611238620[/C][C]395.78261123862[/C][C]528.07570940492[/C][/ROW]
[ROW][C]32[/C][C]145.875[/C][C]-249.740319474826[/C][C]-112.803953299935[/C][C]404.553953299935[/C][C]541.490319474826[/C][/ROW]
[ROW][C]33[/C][C]145.875[/C][C]-262.714745021474[/C][C]-121.287474172004[/C][C]413.037474172004[/C][C]554.464745021475[/C][/ROW]
[ROW][C]34[/C][C]145.875[/C][C]-275.289669066932[/C][C]-129.509775053131[/C][C]421.259775053131[/C][C]567.039669066932[/C][/ROW]
[ROW][C]35[/C][C]145.875[/C][C]-287.499869141951[/C][C]-137.493595748400[/C][C]429.2435957484[/C][C]579.249869141951[/C][/ROW]
[ROW][C]36[/C][C]145.875[/C][C]-299.375351978915[/C][C]-145.258556605515[/C][C]437.008556605515[/C][C]591.125351978915[/C][/ROW]
[ROW][C]37[/C][C]145.875[/C][C]-310.942222388662[/C][C]-152.821726642816[/C][C]444.571726642816[/C][C]602.692222388662[/C][/ROW]
[ROW][C]38[/C][C]145.875[/C][C]-322.223358685903[/C][C]-160.198065186223[/C][C]451.948065186223[/C][C]613.973358685903[/C][/ROW]
[ROW][C]39[/C][C]145.875[/C][C]-333.23894483774[/C][C]-167.400769822447[/C][C]459.150769822447[/C][C]624.98894483774[/C][/ROW]
[ROW][C]40[/C][C]145.875[/C][C]-344.006894819073[/C][C]-174.441553870079[/C][C]466.191553870079[/C][C]635.756894819073[/C][/ROW]
[ROW][C]41[/C][C]145.875[/C][C]-354.543194718248[/C][C]-181.330870070450[/C][C]473.08087007045[/C][C]646.293194718248[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75953&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75953&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
18145.87543.727563744631479.084381456999212.665618543001248.022436255369
19145.8751.4167102860165051.4188014172001240.3311985828290.333289713984
20145.875-31.049549457201630.1902552145703261.559744785430322.799549457202
21145.875-58.419872510737212.2937629139981279.456237086002350.169872510737
22145.875-82.5336111943308-3.47336332140813295.223363321408374.283611194331
23145.875-104.334097359124-17.7279350352248309.477935035225396.084097359124
24145.875-124.381713394528-30.8363665769598322.58636657696416.131713394528
25145.875-143.041579427967-43.0373971655998334.7873971656434.791579427967
26145.875-160.567308766106-54.4968556290029346.246855629003452.317308766106
27145.875-177.143555713826-65.3354809273599357.08548092736468.893555713826
28145.875-192.909719355804-75.644421222888367.394421222888484.659719355804
29145.875-207.974098914403-85.4944895708593377.244489570859499.724098914403
30145.875-222.422819075921-94.941999876746386.691999876746514.172819075921
31145.875-236.325709404920-104.032611238620395.78261123862528.07570940492
32145.875-249.740319474826-112.803953299935404.553953299935541.490319474826
33145.875-262.714745021474-121.287474172004413.037474172004554.464745021475
34145.875-275.289669066932-129.509775053131421.259775053131567.039669066932
35145.875-287.499869141951-137.493595748400429.2435957484579.249869141951
36145.875-299.375351978915-145.258556605515437.008556605515591.125351978915
37145.875-310.942222388662-152.821726642816444.571726642816602.692222388662
38145.875-322.223358685903-160.198065186223451.948065186223613.973358685903
39145.875-333.23894483774-167.400769822447459.150769822447624.98894483774
40145.875-344.006894819073-174.441553870079466.191553870079635.756894819073
41145.875-354.543194718248-181.330870070450473.08087007045646.293194718248







Actuals and Interpolation
TimeActualForecast
1341.95341.608050170975
2326.3416667341.950000000067
3317.3416667326.3416667
4440.867317.3416667
5433.034440.867
6477.3506667433.034
7488.225477.3506667
8463.4333333488.225
9384.25463.4333333
10273.675384.25
11268.1666667273.675
12226.6916667268.1666667
13248.8333333226.6916667
14224.75248.8333333
15188.0083333224.75
16194.8916667188.0083333
17145.875194.8916667

\begin{tabular}{lllllllll}
\hline
Actuals and Interpolation \tabularnewline
Time & Actual & Forecast \tabularnewline
1 & 341.95 & 341.608050170975 \tabularnewline
2 & 326.3416667 & 341.950000000067 \tabularnewline
3 & 317.3416667 & 326.3416667 \tabularnewline
4 & 440.867 & 317.3416667 \tabularnewline
5 & 433.034 & 440.867 \tabularnewline
6 & 477.3506667 & 433.034 \tabularnewline
7 & 488.225 & 477.3506667 \tabularnewline
8 & 463.4333333 & 488.225 \tabularnewline
9 & 384.25 & 463.4333333 \tabularnewline
10 & 273.675 & 384.25 \tabularnewline
11 & 268.1666667 & 273.675 \tabularnewline
12 & 226.6916667 & 268.1666667 \tabularnewline
13 & 248.8333333 & 226.6916667 \tabularnewline
14 & 224.75 & 248.8333333 \tabularnewline
15 & 188.0083333 & 224.75 \tabularnewline
16 & 194.8916667 & 188.0083333 \tabularnewline
17 & 145.875 & 194.8916667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=75953&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]341.95[/C][C]341.608050170975[/C][/ROW]
[ROW][C]2[/C][C]326.3416667[/C][C]341.950000000067[/C][/ROW]
[ROW][C]3[/C][C]317.3416667[/C][C]326.3416667[/C][/ROW]
[ROW][C]4[/C][C]440.867[/C][C]317.3416667[/C][/ROW]
[ROW][C]5[/C][C]433.034[/C][C]440.867[/C][/ROW]
[ROW][C]6[/C][C]477.3506667[/C][C]433.034[/C][/ROW]
[ROW][C]7[/C][C]488.225[/C][C]477.3506667[/C][/ROW]
[ROW][C]8[/C][C]463.4333333[/C][C]488.225[/C][/ROW]
[ROW][C]9[/C][C]384.25[/C][C]463.4333333[/C][/ROW]
[ROW][C]10[/C][C]273.675[/C][C]384.25[/C][/ROW]
[ROW][C]11[/C][C]268.1666667[/C][C]273.675[/C][/ROW]
[ROW][C]12[/C][C]226.6916667[/C][C]268.1666667[/C][/ROW]
[ROW][C]13[/C][C]248.8333333[/C][C]226.6916667[/C][/ROW]
[ROW][C]14[/C][C]224.75[/C][C]248.8333333[/C][/ROW]
[ROW][C]15[/C][C]188.0083333[/C][C]224.75[/C][/ROW]
[ROW][C]16[/C][C]194.8916667[/C][C]188.0083333[/C][/ROW]
[ROW][C]17[/C][C]145.875[/C][C]194.8916667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=75953&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=75953&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
1341.95341.608050170975
2326.3416667341.950000000067
3317.3416667326.3416667
4440.867317.3416667
5433.034440.867
6477.3506667433.034
7488.225477.3506667
8463.4333333488.225
9384.25463.4333333
10273.675384.25
11268.1666667273.675
12226.6916667268.1666667
13248.8333333226.6916667
14224.75248.8333333
15188.0083333224.75
16194.8916667188.0083333
17145.875194.8916667







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

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