I used a GNM (Generalised Non-Linear Model) to make a prediction and stored all the data in a data frame. I also stored a pred_up and pred_down var
pred_up
pred_down