Forecasting by analogy