All functions 


Add fitted values from a model to a data frame 

Add fitted values from a GAM to a data frame 

Add partial residuals 

Add residuals from a model to a data frame 

Add residuals from a GAM to a data frame 

Model diagnostic plots 

Basis expansions for smooths 

Simulated bird migration data 

Select smooths based on user's choices 

Extract coefficients from a fitted 

Pointwise and simultaneous confidence intervals for derivatives of smooths 

Pointwise and simultaneous confidence intervals for smooths 

Vectorized version of 

Simulate example data for fitting GAMs 

Prepare a data slice through covariates 

Derivatives of estimated smooths via finite differences 

Differences of factor smooth interactions 

Generic plotting via 

Plot derivatives of smooths 

Plot differences of smooths 


Plot estimated smooths 
Plot estimated smooths from a fitted GAM 

Plot basis functions 

Plot posterior smooths 

Evaluate a smooth 

Names of any factor variables in model data 

Extract family objects from models 

First derivatives of fitted GAM functions 

Fix the names of a data frame containing an offset variable. 

Extract an factorby smooth by name 

Extract an mgcv smooth by name 

Extract an mgcv smooth given its position in the model object 

Data from the General Social Survey (GSS) from the National Opinion Research Center of the University of Chicago 


Tests for by variable smooths 
Is a model term a factor (categorical)? 

Vectorised checks for variable types 

Check if objects are smooths or are a particular type of smooth 

Is a model term an offset? 

Extract link and inverse link functions from models 

Load mgcv quietly 

How many smooths in a fitted model 

Plot of fitted against observed response values 

Names of any parametrix terms in a GAM 

Partial residuals 

Draw samples from the posterior distribution of an estimated model 

Draw fitted values from the posterior distribution 

Quantilequantile plot of model residuals 

Reference simulation data 

Repeat the first level of a factor n times 

Histogram of model residuals 

Plot of residuals versus linear predictor values 

Create a sequence of evenlyspaced values 

Create a sequence of evenlyspaced values adjusted to accommodate a small adjustment 

Shift numeric values in a data frame by an amount 

Simulate from the posterior distribution of a GAM 

Lead210 agedepth measurements for Small Water 

Indices of the parametric terms for a particular smooth 

Dimension of a smooth 

Posterior draws for individual smooths 

Names of smooths in a GAM 

Names of variables involved in a specified model term 

A tidy basis representation of a smooth object 

Returns names of variables from a smooth label 

Identify a smooth term by it's label 

Madison lakes zooplankton data 