Skip to content
Prev 244036 / 398506 Next

Help with GAM (mgcv)

Probably the problem is with trying to smooth maritalStatus, which is a factor 
variable. Smooths are generally functions of metric variables (i.e. variables 
that take numerical values, where the ordering is meaningful). You can have 
random effect smooths and markov random field smooths in more recent mgcv 
versions (which can take factor arguments), but I doubt that these would be 
all that useful here... I would simply include maritalStatus as a factor 
variable.
On Monday 06 December 2010 11:37, Stressed1985 wrote: