## All functions

add_fitted()

Add fitted values from a model to a data frame

add_fitted(<gam>)

Add fitted values from a GAM to a data frame

add_partial_residuals()

add_residuals()

Add residuals from a model to a data frame

add_residuals(<gam>)

Add residuals from a GAM to a data frame

appraise()

Model diagnostic plots

basis()

Basis expansions for smooths

bird_move

Simulated bird migration data

check_user_select_smooths()

Select smooths based on user's choices

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_sim()

Simulate example data for fitting GAMs

data_slice()

Prepare a data slice through covariates

derivatives()

Derivatives of estimated smooths via finite differences

difference_smooths()

Differences of factor smooth interactions

draw()

Generic plotting via ggplot2

draw(<derivatives>)

Plot derivatives of smooths

draw(<difference_smooth>)

Plot differences 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

draw(<mgcv_smooth>)

Plot basis functions

draw(<smooth_samples>)

Plot posterior smooths

evaluate_smooth() evaluate_parametric_term()

Evaluate a smooth

factor_var_names()

Names of any factor variables in model data

family(<gam>) family(<gamm>) family(<bam>) family(<list>)

Extract family objects from models

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

gss_vocab

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

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

Tests for by variable smooths

is_factor_term()

Is a model term a factor (categorical)?

is_factor_var() is_numeric_var()

Vectorised checks for variable types

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?

link() inv_link()

load_mgcv()

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

partial_residuals()

Partial residuals

posterior_samples()

Draw samples from the posterior distribution of an estimated model

fitted_samples() predicted_samples()

Draw fitted values from the posterior distribution

qq_plot()

Quantile-quantile plot of model residuals

ref_sims

Reference simulation data

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_coefs()

Indices of the parametric terms for a particular smooth

smooth_dim()

Dimension of a smooth

smooth_samples()

Posterior draws for individual smooths

smooths()

Names of smooths in a GAM

term_variables()

Names of variables involved in a specified model term

tidy_basis()

A tidy basis representation of a smooth object

vars_from_label()

Returns names of variables from a smooth label

which_smooths()

Identify a smooth term by it's label

zooplankton