Hello,
I am currently learning how to work with Generalized Additive Models (GAMs).
I found the following exercise in an old Stata Technical Bulletin:

Now, producing the model is pretty straightforward, but I was wondering how to get this graph.
I have been searching a bit online for how to do this, but most (introductory) manuals simply explain how to produce a straight "trendline", not the ones shown above.
I have very limited experience in visualizing my results.
Thank you for your help,
Willem
I am currently learning how to work with Generalized Additive Models (GAMs).
I found the following exercise in an old Stata Technical Bulletin:
Now, producing the model is pretty straightforward, but I was wondering how to get this graph.
I have been searching a bit online for how to do this, but most (introductory) manuals simply explain how to produce a straight "trendline", not the ones shown above.
I have very limited experience in visualizing my results.
Thank you for your help,
Willem
Comment