I added the plot latent function to compare the maximum values of the latent function f with y.