All functions

appraise()

Model diagnostic plots

bird_move

Simulated bird migration data

coef(<scam>)

Extract coefficients from a fitted scam model.

confint(<fderiv>)

Point-wise and simultaneous confidence intervals for derivatives of smooths

confint(<gam>) confint(<gamm>)

Point-wise and simultaneous confidence intervals for smooths

data_class()

Vectorized version of data.class

data_slice()

Prepare a data slice through covariates

datagen()

Generate data over the range of variables used in smooths

derivatives()

Derivatives of estimated smooths via finite differences

draw()

Generic plotting via ggplot2

draw(<derivatives>)

Plot derivatives of smooths

draw(<evaluated_1d_smooth>) draw(<evaluated_2d_smooth>) draw(<evaluated_re_smooth>) draw(<evaluated_fs_smooth>) draw(<evaluated_parametric_term>)

Plot estimated smooths

draw(<gam>)

Plot estimated smooths from a fitted GAM

evaluate_smooth() evaluate_parametric_term()

Evaluate a smooth

factor_var_names()

Names of any factor variables in model data

fderiv()

First derivatives of fitted GAM functions

fix_offset()

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

get_by_smooth()

Extract an factor-by smooth by name

get_smooth()

Extract an mgcv smooth by name

get_smooths_by_id()

Extract an mgcv smooth given its position in the model object

is_by_smooth() is_factor_by_smooth() is_continuous_by_smooth() by_variable() by_level()

Tests for by variable smooths

is_factor_var()

Are variables in a data frame factors?

is_mgcv_smooth() is_mrf_smooth()

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

is_offset()

Is a model term an offset?

n_smooths()

How many smooths in a fitted model

observed_fitted_plot()

Plot of fitted against observed response values

parametric_terms()

Names of any parametrix terms in a GAM

qq_plot()

Quantile-quantile plot of model residuals

rep_first_factor_value()

Repeat the first level of a factor n times

residuals_hist_plot()

Histogram of model residuals

residuals_linpred_plot()

Plot of residuals versus linear predictor values

seq_min_max()

Create a sequence of evenly-spaced values

seq_min_max_eps()

Create a sequence of evenly-spaced values adjusted to accommodate a small adjustment

shift_values()

Shift numeric values in a data frame by an amount eps

simulate(<gam>) simulate(<gamm>) simulate(<scam>)

Simulate from the posterior distribution of a GAM

smallAges

Lead-210 age-depth measurements for Small Water

smooth_dim()

Dimension of a smooth

smooths()

Names of smooths in a GAM

which_smooths()

Identify a smooth term by it's label

zooplankton

Madison lakes zooplankton data