matteoredaelli / strategico

Automatically exported from code.google.com/p/strategico
GNU General Public License v3.0
1 stars 1 forks source link

Wrong period labels in prediction #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if you ran

  ./strategico.R -n sample --cmd eval_ts --ts.string 33,244,225,201,101,103,51,40,24,44,73,120,142 --ts.start 2010-4 --ts.freq 12 --id.min 100

then

3 initial 0 are inserted in the TS. and the prefiction starts with 3 months 
later...

2010-1  0
2010-2  0
2010-3  0
2010-4  33
2010-5  244
2010-6  225
2010-7  201
2010-8  101
2010-9  103
2010-10 51
2010-11 40
2010-12 24
2011-1  44
2011-2  73
2011-3  120
2011-4  142
    Predicted values
2011-8  342
2011-9  312
2011-10 277
2011-11 166
2011-12 157
2012-1  94
2012-2  72
2012-3  45

IN the function  

     ltp.normalizeData 

I see

  period.start.fix = period.start
  period.start = apply(matrix(as.numeric(unlist(strsplit(rownames(product),"-"))),nrow=2),1,min)

Why?

Original issue reported on code.google.com by matteo.redaelli on 3 May 2011 at 9:58

GoogleCodeExporter commented 9 years ago
this case study now works: maybe solved... 

Original comment by matteo.redaelli on 17 May 2011 at 9:50