Top "Gam" questions

GAM (Generalized Additive Model) is a statistical model used to combine Generalized Linear Models with Additive Models.

Error in model.frame.default: variable lengths differ

On running a gam model using the mgcv package, I encountered a strange error message which I am unable to …

r quantmod gam mgcv
Is it possible to plot the smooth components of a gam fit with ggplot2?

I am fitting a model using gam from the mgcv package and store the result in model and so far …

r ggplot2 gam mgcv
How to extract fitted splines from a GAM (`mgcv::gam`)

I am using GAM to model time trends in a logistic regression. Yet I would like to extract the the …

r gam mgcv
gam plots with ggplot

I need to create some gam plots in ggplot. I can do them with the general plot function, but am …

r ggplot2 gam