I am trying to fit a GAM model to a test dataset of two variables (x,y) and then predict the y variable using the x variable (I know this doesn’t make a lot of sense but it