Displaying 2 results from an estimated 2 matches for "forecastvalues".
2009 Jul 21
1
Forecasting - Croston Method Error
...e code below, but I get in return this message "*Error in
decompose(ts(x[1L:wind], start = start(x), frequency = f), seasonal) : time
series has no or less than 2 periods*".
histValues
<-ts(c(5,5,0,0,3,0,1,3,0,3,0,2,7,3,2,2,3,2,3,2,2,3,1,1,3,0,1,0,2,1,0,4,1,1,3,0,1),f=12,s=c(1998,1))
forecastValues <- croston(histValues, h=4, alpha=0.1)
Does anyone know the causes and how to fix this problem?
Thanks,
Pedro Souto
[[alternative HTML version deleted]]
2005 Mar 03
12
bug in postgresql ''now'' time handling??
line 212 of postgresql_adapter.rb is
return Time.now.to_s if value =~ /^\(''now''::text\)::(date|timestamp)/
i don''t think this will work. in postgresql the field ''now'' is pinned to the
SAME TIME for the duration of a transaction. eg. if you do
begin transaction;
insert into t values(42, ''now'');
# sleep one minute