01 September 2017 4 2K Report

What is the difference between adding a random effect to a GAM by adding it to the model as a factorial explanatory variable, compared to adding it as a random effect to a GAMM? Would it be wrong?

I am aware that when adding the mixed-effects part to the model, it is because I want to include some sort of random effect. However, this could perhaps be done in the GAM by simply adding categorical data as an explanatory variable.

In my specific case, I am trying to look at a continuous response variable with time as an explanatory variable, but I have multiple observations from different individuals which needs to be taken into account.

More Lea M Sommer's questions See All
Similar questions and discussions