Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Controlling the smoothing function in Generalized Additive Model (GAM) and add a linear term into the model

    Hi. I am studying Generalized Additive Model (GAM) and try to practice with STATA. I can run the GAM model with my data but I do not know how to switch the smoothing function from the cubic smoothing splines (default) to either kernel smoother or LOWESS. And if it is possible, I would like to know how to change the window size for the LOWESS as well.

    My second question is, How can I add another linear term (not using a smoother) into the GAM model in STATA.

    I will appreciate your help so much. Thank you!
Working...
X