update prediction.data.r