Top "Mgcv" questions

mgcv (Mixed GAM Computation Vehicle) is a CRAN package for the R language, it contains routines for GAMs and other generalized ridge regression with multiple smoothing parameter selection by GCV, REML or UBRE/AIC.

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
installation path not writable R, unable to update packages

I am trying to install Bioconductor into R, using the code on their website. When I type in the code (…

r bioconductor 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 get confidence interval for smooth.spline?

I have used smooth.spline to estimate a cubic spline for my data. But when I calculate the 90% point-wise confidence …

r smoothing confidence-interval splines 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
Extract knots, basis, coefficients and predictions for P-splines in adaptive smooth

I'm using the mgcv package to fit some polynomial splines to some data via: x.gam <- gam(cts ~ …

r spline mgcv
Extract estimates of GAM

I am fairly new to R and presently reading a book “Generalized Additive Models”, an Introduction with R by Wood (2006) …

r gam mgcv
Extracting data used to make a smooth plot in mgcv

This thread from a couple of years ago describes how to extract data used to plot the smooth components of …

r trace mgcv