Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv'
Add a confidence interval to an existing object
Add a constant to estimated values
Add posterior draws from a model to a data object
Add fitted values from a GAM to a data frame
Add fitted values from a model to a data frame
Add partial residuals
Add residuals from a GAM to a data frame
Add residuals from a model to a data frame
Add indicators of significant change after SiZeR
Model diagnostic plots
Plot estimated smooths from a fitted GAM
Prepare plots via ggplot2 and assembles them as a list
Extract basis dimension of a smooth
Basis expansions for smooths
Extract the boundary of a soap film smooth
Select smooths based on user's choices
Extract coefficients from a fitted scam model.
Compare smooths across models
Conditional predictions from a GAM
Point-wise and simultaneous confidence intervals for derivatives of sm...
Point-wise and simultaneous confidence intervals for smooths
All combinations of factor levels plus typical values of continuous va...
Simulate example data for fitting GAMs
Prepare a data slice through model covariates
Generate data over the range of variables used in smooths
Posterior expectations of derivatives from an estimated model
Derivatives of estimated smooths via finite differences
Differences of factor smooth interactions
Dispersion parameter for fitted model
Internal function to draw an individual parametric effect
Plot basis functions
Plot comparisons of smooths
Plot conditional predictions
Plot derivatives of smooths
Plot differences of smooths
Plot estimated parametric effects
Plot estimated smooths from a fitted GAM
Plot smooths of a GAMLSS model estimated by GJRM::gamlss
Plot basis functions
Plot concurvity measures
Plot estimated effects for model parametric terms
Display penalty matrices of smooths using ggplot
Generic plotting via ggplot2
Draw a rootogram
Plot the result of a call to smooth_estimates()
Plot posterior smooths
Effective degrees of freedom for smooths and GAMs
S3 methods to evaluate individual smooths
Evaluate parametric model terms
Evaluate a smooth
Create a sequence of evenly-spaced values
All combinations of factor levels
Name of family used to fit model
Extracts the type of family in a consistent way
Extract family objects from models
First derivatives of fitted GAM functions
Draw fitted values from the posterior distribution
Generate fitted values from a estimated GAM
Fix the names of a data frame containing an offset variable.
Extract fixed effects estimates from a fitted GAM
Extract fixed effects estimates
Posterior samples using a simple Metropolis Hastings sampler
Extract an factor-by smooth by name
Extract an mgcv smooth by name
Extract an mgcv smooth given its position in the model object
gratia: Graceful 'ggplot'-Based Graphics and Other Functions for GAMs ...
Gu and Wahba test functions
Are additional parameters available for a GAM?
Tests for by variable smooths
Is a model term a factor (categorical)?
Is an object one of mgcv's family objects?
Check if objects are smooths or are a particular type of smooth
Is a model multivariate?
Is a model term an offset?
Extract link and inverse link functions from models
Load mgcv quietly
Return the linear prediction matrix of a fitted GAM
General names of LSS parameters for each GAM family
Posterior samples using a Gaussian approximation to the posterior dist...
Concurvity of an estimated GAM
Extract the model constant term
Find the names of model terms
List the variables involved in a model fitted with a formula
The Number of linear predictors in model
How many smooths in a fitted model
Negative binomial parameter theta
Partial residuals in nested form
Values for rug plot in nested form
Extract the null deviance of a fitted model
Plot of fitted against observed response values
Provides an overview of a model and the terms in that model
Estimated values for parametric model terms
Names of any parametric terms in a GAM
Partial derivatives of estimated multivariate smooths via finite diffe...
Partial residuals
Extract and tidy penalty matrices
Low-level Functions to generate draws from the posterior distribution ...
A list of transformation functions named for LSS parameters in a GAMLS...
Draw samples from the posterior distribution of an estimated model
Draw new response values from the conditional distribution of the resp...
Quantile-quantile plot of model residuals
Randomised residuals
Return the reference or specific level of a factor
Reorder random factor smooth terms to place factor last
Reorder tensor product terms for nicer plotting
Repeat the first level of a factor n times
Histogram of model residuals
Plot of residuals versus linear predictor values
Derivatives on the response scale from an estimated GAM
Rootograms to assess goodness of model fit
Simulator for tweedie LSS models
Default diverging red-blue colour palette for partial effects
Create a sequence of evenly-spaced values adjusted to accommodate a sm...
Shift numeric values in a data frame by an amount eps
Simulate from the posterior distribution of a GAM
Indices of the parametric terms for a particular smooth
Coefficients for a particular smooth
Generate regular data over the covariates of a smooth
Dimension of a smooth
Evaluate smooths at covariate values
Extract the label for a smooth used by 'mgcv'
Posterior draws for individual smooths
List the variables involved in smooths
Determine the type of smooth and return it n a human readable form
Names of smooths in a GAM
Evaluate a spline at provided covariate values
Evaluate a spline at provided covariate values
Extract names of all variables needed to fit a GAM or a smooth
Names of variables involved in a specified model term
General extractor for additional parameters in mgcv models
A tidy basis representation of a smooth object
Sets the elements of vector to NA
Set rows of data to NA if the lie too far from a reference set of va...
Exclude values that lie too far from the support of data
Transform estimated values and confidence intervals by applying a func...
Typical values of model covariates
Handle user-supplied posterior draws
Variance components of smooths from smoothness estimates
Returns names of variables from a smooth label
Identify a smooth term by its label
Worm plot of model residuals
Graceful 'ggplot'-based graphics and utility functions for working with generalized additive models (GAMs) fitted using the 'mgcv' package. Provides a reimplementation of the plot() method for GAMs that 'mgcv' provides, as well as 'tidyverse' compatible representations of estimated smooths.