how to predict future values in r