16.10 Making predictions
Let’s go ahead and wrap this all up by making some predictions from our model and plotting those over the raw data. This process is essentially identical to the process we used for linear models and GLM in R:
Make log-scale predictions
Calculate confidence intervals:
Now, convert the predictions back to the real scale for plotting:
And smash the predictions back together with the data
Finally, we can plot our predictions over the raw data on the real scale: