Package: gratia 0.11.2-73

gratia: Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv'
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.
Authors:
gratia_0.11.2-73.tar.gz
gratia_0.11.2-73.zip(r-4.7-x86_64)gratia_0.11.2-73.zip(r-4.7-arm64)gratia_0.11.2-73.zip(r-4.6-x86_64)gratia_0.11.2-73.zip(r-4.6-arm64)gratia_0.11.2-73.zip(r-4.5-x86_64)
gratia_0.11.2-73.tgz(r-4.6-x86_64)gratia_0.11.2-73.tgz(r-4.6-arm64)gratia_0.11.2-73.tgz(r-4.5-x86_64)gratia_0.11.2-73.tgz(r-4.5-arm64)
gratia_0.11.2-73.tar.gz(r-4.7-arm64)gratia_0.11.2-73.tar.gz(r-4.7-x86_64)gratia_0.11.2-73.tar.gz(r-4.6-arm64)gratia_0.11.2-73.tar.gz(r-4.6-x86_64)
gratia_0.11.2-73.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
gratia/json (API)
| # Install 'gratia' in R: |
| install.packages('gratia', repos = c('https://gavinsimpson.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/gavinsimpson/gratia/issues
Pkgdown/docs site:https://gavinsimpson.github.io
- bird_move - Simulated bird migration data
- gss_vocab - Data from the General Social Survey (GSS) from the National Opinion Research Center of the University of Chicago
- ref_sims - Reference simulation data
- smallAges - Lead-210 age-depth measurements for Small Water
- zooplankton - Madison lakes zooplankton data
distributional-regressiongamgammgeneralized-additive-mixed-modelsgeneralized-additive-modelsggplot2glmlmmgcvpenalized-splinerandom-effectssmoothingsplinesopenblascpp
Last updated from:0b3434e0de. Checks:14 OK, 1 ERROR. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 641 | ||
| linux-devel-x86_64 | OK | 786 | ||
| source / vignettes | OK | 643 | ||
| linux-release-arm64 | OK | 890 | ||
| linux-release-x86_64 | OK | 651 | ||
| macos-release-arm64 | OK | 713 | ||
| macos-release-x86_64 | OK | 1127 | ||
| macos-oldrel-arm64 | ERROR | 643 | ||
| macos-oldrel-x86_64 | OK | 1040 | ||
| windows-devel-arm64 | OK | 954 | ||
| windows-devel-x86_64 | OK | 970 | ||
| windows-release-arm64 | OK | 994 | ||
| windows-release-x86_64 | OK | 1141 | ||
| windows-oldrel-x86_64 | OK | 587 | ||
| wasm-release | OK | 278 |
Exports:add_confintadd_constantadd_fittedadd_fitted_samplesadd_partial_residualsadd_posterior_samplesadd_predicted_samplesadd_residualsadd_sizeradd_smooth_samplesaleall_levelsappraiseas_mcmc_drawsassemblebasisbasis_sizeboundaryby_levelby_variablecheck_is_mgcv_smoothcompare_smoothsconcrvityconditional_differencesconditional_momentsconditional_valuesdata_combosdata_simdata_slicederivative_samplesderivativesdharma_residualsdifference_smoothsdispersiondrawdraw_label_controledfeval_smoothevaluate_parametric_termevaluate_smoothevenlyextract_linkfactor_combosfamily_namefamily_parametersfamily_typefderivfitted_momentsfitted_samplesfitted_valuesfix_offsetfixed_effectsgaussian_drawsgenerate_drawsget_by_smoothget_smoothget_smooths_by_idget_vcovgratia_palettegratia_theme_getgratia_theme_setgratia_theme_updategw_f0gw_f1gw_f2gw_f3has_thetain_shape_setinv_linkis_by_smoothis_continuous_by_smoothis_factor_by_smoothis_factor_termis_mgcv_familyis_mgcv_smoothis_mrf_smoothis_multivariate_yis_offsetlevellinkload_mgcvlog_liklp_matrixmh_drawsmodel_concurvitymodel_constantmodel_edfmodel_termsmodel_varsn_etan_smoothsnb_thetanull_devianceobserved_fitted_plotoverviewparametric_effectsparametric_termspartial_derivativespartial_residualspenaltypost_drawsposterior_predictive_plotposterior_samplespredicted_samplesqq_plotquantile_residualsrandom_effect_samplesref_levelresidual_correlationresidual_correlation_plotresiduals_covariate_plotresiduals_hist_plotresiduals_linpred_plotresponse_derivativesrootogramrtwsampling_diagnosticsscalable_observed_fitted_plotscalable_qq_plotscalable_residuals_covariate_plotscalable_residuals_hist_plotscalable_residuals_linpred_plotscalable_worm_plotscale_fill_partial_effectshape_confidence_setshape_intervalssmooth_coef_indicessmooth_coefssmooth_datasmooth_dimsmooth_estimatessmooth_labelsmooth_samplessmooth_termssmooth_typesmoothsspline_valuesspline_values2stop_if_not_mgcv_smoothsurrogate_residualsterm_namesterm_variablesthetatidy_basisto_natoo_fartoo_far_to_natransform_funtypical_valuesuser_drawsvariance_compvars_from_labelwhich_smoothsworm_plot
Dependencies:BHclicpp11dplyrfarvergenericsggplot2gluegtableisobandKernSmoothlabelinglatticelifecyclemagrittrMatrixmgcvmvnfastnlmepatchworkpillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr
Last update: 2026-10-24
Started: 2026-09-21
Last update: 2026-10-24
Started: 2022-02-06
Last update: 2026-10-24
Started: 2026-10-16
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Add a confidence interval to an existing object | add_confint add_confint.default add_confint.parametric_effects add_confint.smooth_estimates |
| Add a constant to estimated values | add_constant add_constant.evaluated_parametric_term add_constant.mgcv_smooth add_constant.parametric_effects add_constant.smooth_estimates add_constant.smooth_samples add_constant.tbl_df |
| Add fitted values from a model to a data frame | add_fitted add_fitted.gamm4 add_fitted.scam |
| Add posterior draws from a model to a data object | add_fitted_samples add_posterior_samples add_predicted_samples add_smooth_samples |
| Add fitted values from a GAM to a data frame | add_fitted.gam |
| Add partial residuals | add_partial_residuals add_partial_residuals.gam add_partial_residuals.gamm4 add_partial_residuals.scam |
| Add residuals from a model to a data frame | add_residuals add_residuals.gamm4 add_residuals.scam |
| Add residuals from a GAM to a data frame | add_residuals.gam |
| Add indicators of significant change after SiZeR | add_sizer add_sizer.derivatives add_sizer.smooth_estimates |
| Accumulated local effects of a model covariate | ale ale.bam ale.default ale.gam ale.scam |
| Model diagnostic plots | appraise appraise.default appraise.gam appraise.gamlss appraise.gamm appraise.gamm4 appraise.gjrm appraise.gratia_diagnostic_proxy appraise.lm appraise.lme appraise.merMod appraise.sdmTMB |
| Convert posterior samples for MCMC diagnostics | as_mcmc_draws |
| Prepare plots via 'ggplot2' and assembles them as a list | assemble assemble.gamm4 |
| Plot smooth and parametric terms from a fitted GAM | assemble.gam assemble.gamm assemble.scam |
| Basis expansions for smooths | basis basis.default basis.gam basis.gamm basis.gamm4 basis.scam |
| Extract basis dimension of a smooth | basis_size basis_size.gam basis_size.gamm basis_size.gamm4 basis_size.mgcv.smooth basis_size.scam |
| Simulated bird migration data | bird_move |
| Extract the boundary of a soap film smooth | boundary boundary.gam boundary.gamm4 boundary.soap.film |
| Select smooths based on user's choices | check_user_select_smooths |
| Extract coefficients from a fitted 'scam' model. | coef.scam |
| Compare smooths across models | compare_smooths |
| Conditional differences of fitted values from a GAM | conditional_differences conditional_differences.gam conditional_differences.gamm4 conditional_differences.scam |
| Conditional moments of a GAM response distribution | conditional_moments conditional_moments.gam |
| Conditional predictions from a GAM | conditional_values conditional_values.gam conditional_values.gamm4 conditional_values.scam |
| Point-wise and simultaneous confidence intervals for derivatives of smooths | confint.fderiv |
| Point-wise and simultaneous confidence intervals for smooths | confint.gam confint.gamm confint.gamm4 confint.scam |
| All combinations of factor levels plus typical values of continuous variables | data_combos data_combos.gam data_combos.gamm4 |
| Simulate example data for fitting GAMs | data_sim |
| Generating responses with mgcv family objects | data_sim_families |
| Reference functions for shape-constrained GAMs | data_sim_shapes |
| Prepare a data slice through model covariates | data_slice data_slice.data.frame data_slice.default data_slice.gam data_slice.gamm data_slice.gamm4 data_slice.scam |
| Posterior expectations of derivatives from an estimated model | derivative_samples derivative_samples.default derivative_samples.gam derivative_samples.gamm derivative_samples.gamm4 derivative_samples.scam |
| Derivatives of estimated smooths via finite differences | derivatives derivatives.default derivatives.gam derivatives.gamm derivatives.gamm4 derivatives.scam |
| Simulation-based PIT residuals | dharma_residuals |
| Model diagnostic support and conventions | diagnostic_support |
| Differences of factor smooth interactions | difference_smooths difference_smooths.gam difference_smooths.scam |
| Dispersion parameter for fitted model | dispersion dispersion.gam dispersion.gamm4 dispersion.glm dispersion.scam |
| Generic plotting via 'ggplot2' | draw |
| Control label layout in gratia plots | draw_label_control |
| Plot accumulated local effects | draw.ale |
| Plot basis functions | draw.basis |
| Plot comparisons of smooths | draw.compare_smooths |
| Plot conditional differences | draw.conditional_differences |
| Draw conditional response moments | draw.conditional_moments |
| Plot conditional predictions | draw.conditional_values |
| Plot derivatives of smooths | draw.derivatives draw.partial_derivatives |
| Plot differences of smooths | draw.difference_smooth |
| Plot estimated parametric effects | draw.evaluated_parametric_term |
| Plot smooth and parametric terms from a fitted GAM | draw.gam draw.gamm draw.scam draw.scasm |
| Plot smooths of models estimated by GJRM | assemble.gamlss assemble.gjrm draw.gamlss draw.gjrm |
| Plot basis functions | draw.mgcv_smooth |
| Plot concurvity measures | draw.overall_concurvity draw.pairwise_concurvity |
| Plot estimated effects for model parametric terms | draw.parametric_effects |
| Display penalty matrices of smooths using 'ggplot' | draw.penalty_df |
| Draw a rootogram | draw.rootogram |
| Plot coefficient-chain diagnostics | draw.sampling_diagnostics |
| Plot the result of a call to 'smooth_estimates()' | draw.smooth_estimates |
| Plot posterior smooths | draw.smooth_samples |
| Plot variance components and proportions of term variance | draw.variance_comp |
| Effective degrees of freedom for smooths and GAMs | edf edf.gam edf.gamm4 edf.scam model_edf |
| S3 methods to evaluate individual smooths | eval_smooth eval_smooth.fs.interaction eval_smooth.mgcv.smooth eval_smooth.mrf.smooth eval_smooth.random.effect eval_smooth.scam_smooth eval_smooth.soap.film eval_smooth.sz.interaction eval_smooth.t2.smooth eval_smooth.tensor.smooth |
| Evaluate parametric model terms | evaluate_parametric_term evaluate_parametric_term.gam evaluate_parametric_term.gamm4 |
| Evaluate a smooth | evaluate_smooth |
| Create a sequence of evenly-spaced values | all_levels evenly seq_min_max |
| All combinations of factor levels | factor_combos factor_combos.gam factor_combos.gamm4 |
| Extend diagnostics for an mgcv-compatible family | family_diagnostics |
| Name of family used to fit model | family_name |
| Describe a model family's distribution parameters | family_parameters |
| Extracts the type of family in a consistent way | family_type family_type.default family_type.family |
| Extract family objects from models | family.bam family.gam family.gamm family.gamm4 |
| Estimate moments of the conditional response distribution | fitted_moments fitted_moments.gam |
| Draw fitted values from the posterior distribution | fitted_samples fitted_samples.gam fitted_samples.gamm4 fitted_samples.scam |
| Generate fitted values from a estimated GAM | fitted_values fitted_values.gam fitted_values.gamm fitted_values.gamm4 fitted_values.scam |
| Fix the names of a data frame containing an offset variable. | fix_offset |
| Extract fixed effects estimates from a fitted model | fixed_effects fixed_effects.default fixed_effects.gam fixed_effects.gamm fixed_effects.gamm4 fixed_effects.glm fixed_effects.lm fixed_effects.scam |
| Support for models fitted by gamm4 | gamm4_support |
| Posterior samples using a Gaussian approximation | gaussian_draws gaussian_draws.gam gaussian_draws.gamm4 gaussian_draws.scam |
| Extract an factor-by smooth by name | get_by_smooth |
| Extract an mgcv smooth by name | get_smooth |
| Extract an mgcv smooth given its position in the model object | get_smooths_by_id get_smooths_by_id.gam get_smooths_by_id.gamm get_smooths_by_id.gamm4 get_smooths_by_id.scam |
| Extract the covariance matrix of the model parameters or a subset of these for a particular model term | get_vcov get_vcov.scam |
| Discrete palettes for gratia plots | gratia_palette |
| Native themes for gratia plots | gratia_theme_get gratia_theme_set gratia_theme_update |
| Data from the General Social Survey (GSS) from the National Opinion Research Center of the University of Chicago | gss_vocab |
| Gu and Wahba test functions | gw_f0 gw_f1 gw_f2 gw_f3 gw_functions |
| Are additional parameters available for a GAM? | has_theta |
| Tests for by variable smooths | by_level by_variable is_by_smooth is_continuous_by_smooth is_factor_by_smooth |
| Is a model term a factor (categorical)? | is_factor_term is_factor_term.bam is_factor_term.gam is_factor_term.gamm is_factor_term.gamm4 is_factor_term.list is_factor_term.terms |
| Is an object one of mgcv's family objects? | is_mgcv_family |
| Check if objects are smooths or are a particular type of smooth | check_is_mgcv_smooth is_mgcv_smooth is_mrf_smooth stop_if_not_mgcv_smooth |
| Is a model multivariate? | is_multivariate_y |
| Is a model term an offset? | is_offset |
| Extract link and inverse link functions from models | extract_link extract_link.family extract_link.general.family inv_link inv_link.bam inv_link.family inv_link.gam inv_link.gamm inv_link.gamm4 inv_link.glm link link.bam link.family link.gam link.gamm link.gamm4 link.glm |
| Load mgcv quietly | load_mgcv |
| Posterior draws of pointwise log likelihoods | log_lik log_lik.bam log_lik.gam log_lik.scam |
| Leave-one-out validation and WAIC for GAMs | loo.bam loo.gam loo.scam waic.bam waic.gam waic.scam |
| Return the linear prediction matrix of a fitted GAM | lp_matrix lp_matrix.gam lp_matrix.gamm4 lp_matrix.scam model.matrix.scam |
| Posterior samples using Metropolis Hastings | mh_draws mh_draws.gam mh_draws.gamm4 mh_draws.scam |
| Concurvity of an estimated GAM | concrvity model_concurvity model_concurvity.gam model_concurvity.gamm4 model_concurvity.scam |
| Extract the model constant term | model_constant model_constant.gam model_constant.gamlss model_constant.gamm4 model_constant.glm model_constant.scam |
| Find the names of model terms | model_terms model_terms.gam model_terms.gamm model_terms.gamm4 model_terms.lm model_terms.scam |
| List the variables involved in a model fitted with a formula | model_vars model_vars.bam model_vars.default model_vars.gam model_vars.gamm model_vars.gamm4 model_vars.scam |
| The Number of linear predictors in model | n_eta n_eta.gam n_eta.gamm4 n_eta.scam |
| How many smooths in a fitted model | n_smooths n_smooths.bam n_smooths.default n_smooths.gam n_smooths.gamm n_smooths.gamm4 n_smooths.gjrm n_smooths.glmmTMB |
| Negative binomial parameter theta | nb_theta nb_theta.gam nb_theta.gamm4 |
| Extract the null deviance of a fitted model | null_deviance null_deviance.default |
| Plot of fitted against observed response values | observed_fitted_plot |
| Provides an overview of a model and the terms in that model | overview overview.gam overview.gamm4 overview.scam |
| Estimated values for parametric model terms | parametric_effects parametric_effects.gam parametric_effects.gamm4 parametric_effects.scam |
| Names of any parametric terms in a GAM | parametric_terms parametric_terms.default parametric_terms.gam parametric_terms.gamm4 parametric_terms.scam |
| Partial derivatives of estimated multivariate smooths via finite differences | partial_derivatives partial_derivatives.default partial_derivatives.gam partial_derivatives.gamm partial_derivatives.gamm4 partial_derivatives.scam |
| Partial residuals | partial_residuals partial_residuals.gam partial_residuals.scam |
| Extract and tidy penalty matrices | penalty penalty.default penalty.gam penalty.gamm4 penalty.mgcv.smooth penalty.re.smooth.spec penalty.scam penalty.t2.smooth penalty.tensor.smooth |
| Low-level Functions to generate draws from the posterior distribution of model coefficients | generate_draws generate_draws.gam generate_draws.gamm4 generate_draws.scam post_draws post_draws.default post_draws.gamm4 |
| Posterior predictive check of the response distribution | posterior_predictive_plot |
| Draw samples from the posterior distribution of an estimated model | posterior_samples posterior_samples.gam posterior_samples.gamlss posterior_samples.gamm posterior_samples.gamm4 posterior_samples.glm posterior_samples.glmmTMB posterior_samples.lm posterior_samples.lme posterior_samples.merMod posterior_samples.scam posterior_samples.sdmTMB |
| Posterior checks with bayesplot | pp_check pp_check.bam pp_check.gam pp_check.gamm pp_check.gamm4 pp_check.scam |
| Draw new response values from the conditional distribution of the response | predicted_samples predicted_samples.default predicted_samples.gam predicted_samples.gamm4 predicted_samples.scam |
| Quantile-quantile plot of model residuals | qq_plot qq_plot.default qq_plot.gam qq_plot.gamlss qq_plot.gamm qq_plot.gamm4 qq_plot.gjrm qq_plot.glm qq_plot.gratia_diagnostic_proxy qq_plot.lm qq_plot.lme qq_plot.merMod qq_plot.sdmTMB |
| Effects and diagnostics for glmmTMB models | appraise.glmmTMB assemble.glmmTMB draw.glmmTMB get_smooths_by_id.glmmTMB glmmTMB-methods parametric_effects.glmmTMB parametric_terms.glmmTMB qq_plot.glmmTMB smooths.glmmTMB smooth_coefs.glmmTMB smooth_estimates.glmmTMB worm_plot.glmmTMB |
| PIT and randomised quantile residuals | quantile_residuals quantile_residuals.default quantile_residuals.gam quantile_residuals.gamlss quantile_residuals.gamm quantile_residuals.gamm4 quantile_residuals.gjrm quantile_residuals.glm quantile_residuals.glmmTMB quantile_residuals.gratia_diagnostic_proxy quantile_residuals.gratia_glmmtmb_diagnostic quantile_residuals.lm quantile_residuals.lme quantile_residuals.merMod quantile_residuals.sdmTMB |
| Draw new random effects from an estimated GAM | random_effect_samples |
| Return the reference or specific level of a factor | level ref_level |
| Reference simulation data | ref_sims |
| Repeat the first level of a factor n times | rep_first_factor_value |
| Ordered residual correlation diagnostics | residual_correlation residual_correlation_plot |
| Plot residuals against covariates | residuals_covariate_plot scalable_residuals_covariate_plot |
| Histogram of model residuals | residuals_hist_plot |
| Plot of residuals versus linear predictor values | residuals_linpred_plot |
| Derivatives on the response scale from an estimated GAM | response_derivatives response_derivatives.default response_derivatives.gam response_derivatives.gamm response_derivatives.gamm4 response_derivatives.scam |
| Rootograms to assess goodness of model fit | rootogram rootogram.gam rootogram.gamm4 rootogram.scam |
| Simulator for tweedie LSS models | rtw |
| Extract coefficient-sampler diagnostics | print.sampling_diagnostics sampling_diagnostics |
| Scalable model diagnostic plots | scalable_observed_fitted_plot scalable_qq_plot scalable_residuals_hist_plot scalable_residuals_linpred_plot scalable_worm_plot |
| Default diverging red-blue colour palette for partial effects | scale_fill_partial_effect |
| Formula effects for sdmTMB models | assemble.sdmTMB draw.sdmTMB get_smooths_by_id.sdmTMB n_smooths.sdmTMB parametric_effects.sdmTMB parametric_terms.sdmTMB sdmTMB-methods smooths.sdmTMB smooth_coefs.sdmTMB smooth_estimates.sdmTMB |
| Create a sequence of evenly-spaced values adjusted to accommodate a small adjustment | seq_min_max_eps |
| Intersect a band with linear restrictions on coefficients | in_shape_set shape_confidence_set |
| Enforce named shapes on estimates and interval endpoints | shape_intervals |
| Shift numeric values in a data frame by an amount 'eps' | shift_values |
| Simulate responses from a fitted model | simulate simulate.gam simulate.gamlss simulate.gamm simulate.gamm4 simulate.scam |
| Simultaneous bands on an evaluation grid or a continuous interval | simultaneous_bands |
| Lead-210 age-depth measurements for Small Water | smallAges |
| Indices of the parametric terms for a particular smooth | smooth_coef_indices |
| Coefficients for a particular smooth | smooth_coefs smooth_coefs.bam smooth_coefs.gam smooth_coefs.gamm smooth_coefs.gamm4 smooth_coefs.mgcv.smooth smooth_coefs.scam |
| Generate regular data over the covariates of a smooth | smooth_data |
| Dimension of a smooth | smooth_dim smooth_dim.gam smooth_dim.gamm smooth_dim.gamm4 smooth_dim.mgcv.smooth |
| Evaluate smooths at covariate values | smooth_estimates smooth_estimates.gam smooth_estimates.gamlss smooth_estimates.gjrm |
| Extract the label for a smooth used by 'mgcv' | smooth_label smooth_label.gam smooth_label.gamm4 smooth_label.mgcv.smooth |
| Posterior draws for individual smooths | smooth_samples smooth_samples.gam smooth_samples.gamm4 |
| List the variables involved in smooths | smooth_terms smooth_terms.gamm4 smooth_terms.scam |
| Determine the type of smooth and return it in a human readable form | smooth_type smooth_type.Bspline.smooth smooth_type.cpopspline.smooth smooth_type.cpspline.smooth smooth_type.cr.smooth smooth_type.cs.smooth smooth_type.cv.smooth smooth_type.cvBy.smooth smooth_type.cx.smooth smooth_type.cxBy.smooth smooth_type.cyclic.smooth smooth_type.default smooth_type.dpo.smooth smooth_type.duchon.spline smooth_type.fs.interaction smooth_type.gp.smooth smooth_type.ipo.smooth smooth_type.lipl.smooth smooth_type.lmpi.smooth smooth_type.mdcv.smooth smooth_type.mdcvBy.smooth smooth_type.mdcx.smooth smooth_type.mdcxBy.smooth smooth_type.micv.smooth smooth_type.micvBy.smooth smooth_type.micx.smooth smooth_type.micxBy.smooth smooth_type.mifo.smooth smooth_type.miso.smooth smooth_type.mpd.smooth smooth_type.mpdBy.smooth smooth_type.mpi.smooth smooth_type.mpiBy.smooth smooth_type.mrf.smooth smooth_type.po.smooth smooth_type.pspline.smooth smooth_type.random.effect smooth_type.sf.film smooth_type.sf.wiggly smooth_type.soap.film smooth_type.sos.smooth smooth_type.sz.interaction smooth_type.t2.smooth smooth_type.tecvcv.smooth smooth_type.tecxcv.smooth smooth_type.tecxcx.smooth smooth_type.tedecv.smooth smooth_type.tedecx.smooth smooth_type.tedi.smooth smooth_type.tedmd.smooth smooth_type.tedmi.smooth smooth_type.teid.smooth smooth_type.temicv.smooth smooth_type.temicx.smooth smooth_type.tensor.smooth smooth_type.tescv.smooth smooth_type.tescx.smooth smooth_type.tesmd1.smooth smooth_type.tesmd2.smooth smooth_type.tesmi1.smooth smooth_type.tesmi2.smooth smooth_type.tismd.smooth smooth_type.tismi.smooth smooth_type.tprs.smooth smooth_type.ts.smooth |
| Names of smooths in a GAM | smooths smooths.default smooths.gamlss smooths.gamm smooths.gamm4 smooths.gjrm |
| Evaluate a spline at provided covariate values | spline_values |
| Surrogate residuals for categorical GAMs | surrogate_residuals surrogate_residuals.default surrogate_residuals.gam |
| Extract names of all variables needed to fit a GAM or a smooth | term_names term_names.gam term_names.gamm term_names.gamm4 term_names.mgcv.smooth term_names.scam |
| Names of variables involved in a specified model term | term_variables term_variables.bam term_variables.gam term_variables.gamm4 term_variables.scam term_variables.terms |
| General extractor for additional parameters in mgcv models | theta theta.family theta.gam theta.gamm4 |
| A tidy basis representation of a smooth object | tidy_basis |
| Sets the elements of vector to 'NA' | to_na |
| Exclude values that lie too far from the support of data | too_far |
| Set rows of data to 'NA' if the lie too far from a reference set of values | too_far_to_na |
| Transform estimated values and confidence intervals by applying a function | transform_fun transform_fun.evaluated_parametric_term transform_fun.mgcv_smooth transform_fun.parametric_effects transform_fun.smooth_estimates transform_fun.smooth_samples transform_fun.tbl_df |
| Typical values of model covariates | typical_values typical_values.data.frame typical_values.gam typical_values.gamm4 |
| Handle user-supplied posterior draws | user_draws user_draws.gam user_draws.gamm4 user_draws.scam |
| Variance components and fitted term variances for GAMs | variance_comp variance_comp.gam variance_comp.gamm variance_comp.gamm4 variance_comp.scam |
| Returns names of variables from a smooth label | vars_from_label |
| Identify a smooth term by its label | which_smooths which_smooths.bam which_smooths.default which_smooths.gam which_smooths.gamm which_smooths.gamm4 which_smooths.scam |
| Worm plot of model residuals | worm_plot worm_plot.gam worm_plot.gamlss worm_plot.gamm worm_plot.gamm4 worm_plot.gjrm worm_plot.glm worm_plot.gratia_diagnostic_proxy worm_plot.lm worm_plot.lme worm_plot.merMod worm_plot.sdmTMB |
| Madison lakes zooplankton data | zooplankton |
