Examples: visualization, C++, networks, data cleaning, html widgets, ropensci.

Found 508 packages in 0.01 seconds

cenGAM — by Zhou Fang, 10 months ago

Censored Regression with Smooth Terms

Implementation of Tobit type I and type II families for censored regression using the 'mgcv' package, based on methods detailed in Woods (2016) .

tidygam — by Stefano Coretta, a year ago

Tidy Prediction and Plotting of Generalised Additive Models

Provides functions that compute predictions from Generalised Additive Models (GAMs) fitted with 'mgcv' and return them as a tibble. These can be plotted with a generic plot()-method that uses 'ggplot2' or plotted as any other data frame. The main function is predict_gam().

gam.hp — by Jiangshan Lai, 4 months ago

Hierarchical Partitioning of Adjusted R2 and Explained Deviance for Generalized Additive Models

Conducts hierarchical partitioning to calculate individual contributions of each predictor towards adjusted R2 and explained deviance for generalized additive models based on output of 'gam()' and 'bam()' in 'mgcv' package, applying the algorithm in this paper: Lai(2024) .

psme — by Zheyuan Li, 4 months ago

Penalized Splines Mixed-Effects Models

Fit penalized splines mixed-effects models (a special case of additive models) for large longitudinal datasets. The package includes a psme() function that (1) relies on package 'mgcv' for constructing population and subject smooth functions as penalized splines, (2) transforms the constructed additive model to a linear mixed-effects model, (3) exploits package 'lme4' for model estimation and (4) backtransforms the estimated linear mixed-effects model to the additive model for interpretation and visualization. See Pedersen et al. (2019) and Bates et al. (2015) for an introduction. Unlike the gamm() function in 'mgcv', the psme() function is fast and memory-efficient, able to handle datasets with millions of observations.

spotr — by Jonas Knape, 10 months ago

Estimate Spatial Population Indices from Ecological Abundance Data

Compute relative or absolute population trends across space and time using predictions from models fitted to ecological population abundance data, as described in Knape (2025) . The package supports models fitted by 'mgcv' or 'brms', and draws from posterior predictive distributions.

growthTrendR — by Xiao Jing Guo, 5 days ago

Toolkit for Data Processing, Quality, and Statistical Models

Offers tools for data formatting, anomaly detection, and classification of tree-ring data using spatial comparisons and cross-correlation. Supports flexible detrending and climate–growth modeling via generalized additive mixed models (Wood 2017, ISBN:978-1498728331) and the 'mgcv' package (< https://CRAN.R-project.org/package=mgcv>), enabling robust analysis of non-linear trends and autocorrelated data. Provides standardized visual reporting, including summaries, diagnostics, and model performance. Compatible with '.rwl' files and tailored for the Canadian Forest Service Tree-Ring Data (CFS-TRenD) repository (Girardin et al. (2021) ), offering a comprehensive and adaptable framework for dendrochronologists working with large and complex datasets.

easyViz — by Luca Corlatti, 24 days ago

Easy Visualization of Conditional Effects from Regression Models

Offers a flexible and user-friendly interface for visualizing conditional effects from a broad range of regression models, including mixed-effects and generalized additive (mixed) models. Compatible model types include lm(), rlm(), glm(), glm.nb(), betareg(), and gam() (from 'mgcv'); nonlinear models via nls(); generalized least squares via gls(); and survival models via coxph() (from 'survival'). Mixed-effects models with random intercepts and/or slopes can be fitted using lmer(), glmer(), glmer.nb(), glmmTMB(), or gam() (from 'mgcv', via smooth terms). Plots are rendered using base R graphics with extensive customization options. Approximate confidence intervals for nls() and betareg() models are computed using the delta method. Robust standard errors for rlm() are computed using the sandwich estimator (Zeileis 2004) . For beta regression using 'betareg', see Cribari-Neto and Zeileis (2010) . For mixed-effects models with 'lme4', see Bates et al. (2015) . For models using 'glmmTMB', see Brooks et al. (2017) . Methods for generalized additive models using 'mgcv' follow Wood (2017) .

autogam — by Chitu Okoli, a year ago

Automate the Creation of Generalized Additive Models (GAMs)

This wrapper package for 'mgcv' makes it easier to create high-performing Generalized Additive Models (GAMs). With its central function autogam(), by entering just a dataset and the name of the outcome column as inputs, 'AutoGAM' tries to automate the procedure of configuring a highly accurate GAM which performs at reasonably high speed, even for large datasets.

splineplot — by Jinseob Kim, 3 months ago

Visualization of Spline Effects in GAM and GLM Models

Creates 'ggplot2'-based visualizations of smooth effects from GAM (Generalized Additive Models) fitted with 'mgcv' and spline effects from GLM (Generalized Linear Models). Supports interaction terms and provides hazard ratio plots with histograms for survival analysis. Wood (2017, ISBN:9781498728331) provides comprehensive methodology for generalized additive models.

mgcViz — by Matteo Fasiolo, 7 months ago

Visualisations for Generalized Additive Models

Extension of the 'mgcv' package, providing visual tools for Generalized Additive Models that exploit the additive structure of such models, scale to large data sets and can be used in conjunction with a wide range of response distributions. The focus is providing visual methods for better understanding the model output and for aiding model checking and development beyond simple exponential family regression. The graphical framework is based on the layering system provided by 'ggplot2'.