Published December 21, 2024 | Journal article | Version v1 | https://doi.org/10.21105/joss.06962

gratia: An R package for exploring generalized additive models

Authors/Creators

  • 1. Department of Animal and Veterinary Sciences, Aarhus University, Denmark

Files

gratia-v0.10.0.zip

Files (9.2 MB)

Name Size Download all
md5:a181cdbaf07b7eab4b5562a66acfcc2c
4.2 MB Preview Download
md5:6d63869877874160b17da36919bd9436
5.0 MB Preview Download

Additional details

Dates

Issued
December 21, 2024

References

  1. Simpson, G. L. (2024). gratia: An R package for exploring generalized additive models (Version v0.10.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.14531826
  2. Augustin, N. H., Sauleau, E.-A., & Wood, S. N. (2012). On quantile quantile plots for generalized linear models. Computational Statistics & Data Analysis, 56(8), 2404–2409. https://doi.org/10.1016/j.csda.2012.01.026
  3. Wood, S. N. (2017). Generalized Additive Models. Chapman and Hall/CRC. https://doi.org/10.1201/9781315370279
  4. Hastie, T. J., & Tibshirani, R. J. (2017). Generalized additive models. In Generalized Additive Models (pp. 136–173). Routledge. https://doi.org/10.1201/9780203753781-6
  5. Wood, S. N. (2010). Fast Stable Restricted Maximum Likelihood and Marginal Likelihood Estimation of Semiparametric Generalized Linear Models. Journal of the Royal Statistical Society Series B: Statistical Methodology, 73(1), 3–36. https://doi.org/10.1111/j.1467-9868.2010.00749.x
  6. Wood, S. N., Pya, N., & Säfken, B. (2016). Smoothing Parameter and Model Selection for General Smooth Models. Journal of the American Statistical Association, 111(516), 1548–1563. https://doi.org/10.1080/01621459.2016.1180986
  7. Li, Z., & Wood, S. N. (2019). Faster model matrix crossproducts for large generalized linear models with discretized covariates. Statistics and Computing, 30(1), 19–25. https://doi.org/10.1007/s11222-019-09864-2
  8. Miller, D. L. (2021). Bayesian views of generalized additive modelling. arXiv [stat.ME]. doi:10.48550/arXiv.1902.01330 https://doi.org/10.48550/arxiv.1902.01330
  9. De Boor, C. (2001). A practical guide to splines. Applied mathematical sciences (1st ed.). New York, NY: Springer.
  10. Bürkner, P.-C. (2017). brms : An R Package for Bayesian Multilevel Models Using Stan. Journal of Statistical Software, 80(1). https://doi.org/10.18637/jss.v080.i01
  11. Marra, G., & Radice, R. (2017). GJRM: Generalised Joint Regression Modelling [Dataset]. In CRAN: Contributed Packages. The R Foundation. https://doi.org/10.32614/cran.package.gjrm
  12. Pedersen, E. J., Miller, D. L., Simpson, G. L., & Ross, N. (2019). Hierarchical generalized additive models in ecology: an introduction with mgcv. PeerJ, 7, e6876. https://doi.org/10.7717/peerj.6876
  13. Simpson, G. L. (2018). Modelling Palaeoecological Time Series Using Generalised Additive Models. Frontiers in Ecology and Evolution, 6. https://doi.org/10.3389/fevo.2018.00149
  14. Wickham, H. (2014). Tidy Data. Journal of Statistical Software, 59(10). https://doi.org/10.18637/jss.v059.i10
  15. Wickham, H. (2016). ggplot2. In Use R!. Springer International Publishing. https://doi.org/10.1007/978-3-319-24277-4
  16. R Core Team. (2024). R: A language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing. Retrieved from https://www.r-project.org
  17. Wickham, H., Cetinkaya-Rundel, M., & Grolemund, G. (2023). R for data science: Import, tidy, transform, visualize, and model data (2nd ed.). Sebastopol, CA: O'Reilly Media.
  18. Duchon, J. (1977). Splines minimizing rotation-invariant semi-norms in Sobolev spaces. In Lecture Notes in Mathematics (pp. 85–100). Springer Berlin Heidelberg. https://doi.org/10.1007/bfb0086566
  19. Pebesma, E. (2018). Simple Features for R: Standardized Support for Spatial Vector Data. The R Journal, 10(1), 439. https://doi.org/10.32614/rj-2018-009
  20. Pebesma, E., & Bivand, R. (2023). Spatial Data Science. Chapman and Hall/CRC. https://doi.org/10.1201/9780429459016
  21. Kay, M. (2023). ggdist: Visualizations of Distributions and Uncertainty in the Grammar of Graphics. IEEE Transactions on Visualization and Computer Graphics, 1–11. https://doi.org/10.1109/tvcg.2023.3327195
  22. Matthew Kay. (2024). ggdist: Visualizations of distributions and uncertainty (Version v3.3.2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.10782896
  23. Wood, S. N. (2003). Thin Plate Regression Splines. Journal of the Royal Statistical Society Series B: Statistical Methodology, 65(1), 95–114. https://doi.org/10.1111/1467-9868.00374
  24. Kimeldorf, G. S., & Wahba, G. (1970). A Correspondence Between Bayesian Estimation on Stochastic Processes and Smoothing by Splines. The Annals of Mathematical Statistics, 41(2), 495–502. https://doi.org/10.1214/aoms/1177697089
  25. Wahba, G. (1983). Bayesian "Confidence Intervals" for the Cross-Validated Smoothing Spline. Journal of the Royal Statistical Society Series B: Statistical Methodology, 45(1), 133–150. https://doi.org/10.1111/j.2517-6161.1983.tb01239.x

1–25 of 33

Citations

  1. Campera, M., Skull, J., Morton, L. H., Grant, C. A., Santos, D. D. A., Wimble, D., Olthoff, A., Stenger, L., Bowden‐Pickstock, J., Setiawan, I. M., Maliawan, I. K., Sangha, A., Chavez, J., Garza, M., Sleath‐Probets, J., Karageorgiadi, A., Sadnyana, M. D., Ardhiyanto, I. P. L., Balestri, M., … Sukmadewi, D. K. T. (2026). Indigenous Management Practices to Reduce Pests and Pathogens of Cash Crops in Agroforestry Systems. Ecology and Evolution, 16(2), Article e73094. https://doi.org/10.1002/ece3.73094
  2. E, S., J, S., & E, A. (2026). Successful Single‐Session Neural Self‐Regulation Through Neurofeedback Varies Between Features. Human Brain Mapping, 47(11), Article e70611. https://doi.org/10.1002/hbm.70611
  3. Marques, J. P., Almeida, P. R., Prista, N., Costa, J. L., Alexandre, C. M., Mateus, C. S., Domingos, I., Reis-Santos, P., & Quintella, B. R. (2026). Nursery habitat use of juvenile meagre (Argyrosomus regius): findings from acoustic telemetry in the Tagus estuary. Marine Biology, 173(7), Article 115. https://doi.org/10.1007/s00227-026-04848-z
  4. Restrepo, V. B., Sah, J. P., Gann, D., Standen, E., Tobias, F., Redwine, J., Travieso, R., Troxler, T. G., & Kominoski, J. S. (2026). Divergent Trajectories: Freshwater Rehydration is Associated with Both Increasing and Decreasing Marsh Productivities in the Florida Everglades. Ecosystems, 29(4). https://doi.org/10.1007/s10021-026-01092-w
  5. Ronold, E. K., Kauserud, H., Nordén, J., Asplund, J., Halvorsen, R., Nybakken, L., Krabberød, A. K., Skrede, I., & Maurice, S. (2026). Legacy effects on community composition of dead wood fungi after clear-cutting. Biodiversity and Conservation, 35(13), Article 328. https://doi.org/10.1007/s10531-026-03520-8
  6. Strydom, S., Murray, K., Moustaka, M., Hyndes, G., & Wilson, S. (2026). Getting edgy: implications of fragmented seagrass meadows for fish assemblages. Landscape Ecology, 41(2). https://doi.org/10.1007/s10980-025-02261-3
  7. Pereira, J. A., Cisneros-Araujo, P., Fracassi, N. G., Varela, D., Gaston, A., & Saura, S. (2026). Movement and space-use strategies of a vulnerable wetland deer under environmental and human pressures. Landscape Ecology, 41(9), Article 153. https://doi.org/10.1007/s10980-026-02393-0
  8. Guerrero, E. S., Zuñiga, D. C., Marín, A., Moore, D. C., & Ramírez, J. A. (2026). Using topography to estimate the productivity of Retrophyllum rospigliosii plantations: a case study in the Colombian Andes. New Forests, 57(6), Article 90. https://doi.org/10.1007/s11056-026-10233-x
  9. Nanda, S. A., & Reshi, Z. A. (2026). Elevation and aspect shape dark diversity: conservation implications for Himalayan mountain ecosystems. Community Ecology, 27(3), 789–803. https://doi.org/10.1007/s42974-026-00339-9
  10. Miranda-Vélez, J. F., Simpson, G. L., Hansen, E. M., & Munkholm, L. J. (2026). In-season effects of winter cover crops and tillage on soil NO3- and N leaching – Analysis with generalized additive models. Agriculture, Ecosystems & Environment, 396, 110011. https://doi.org/10.1016/j.agee.2025.110011
  11. Simpson, G. L. (2026). Method: Using generalized additive models in the livestock animal sciences. Animal - Open Space, 5, 100157. https://doi.org/10.1016/j.anopes.2026.100157
  12. Große, S., Premier, J., Ferry, N., Rietz, J., De Pelsmaeker, N., Fiderer, C., Bastianelli, M. L., von Hoermann, C., Müller, J., & Heurich, M. (2026). First come, first served? Succession, synchrony, and coexistence in a vertebrate scavenger community at ephemeral carrion resources. Basic and Applied Ecology, 97, Article 151874. https://doi.org/10.1016/j.baae.2026.151874
  13. Chilton, D., Brookes, J., Hipsey, M., Jamieson, T., Keneally, C., Waycott, M., & Leterme, S. C. (2026). Shifts in flow and salinity shape phytoplankton communities in the Coorong, a Ramsar-listed shallow coastal lagoon (South Australia). Continental Shelf Research, 302, 105744. https://doi.org/10.1016/j.csr.2026.105744
  14. Brand, J. A., Palm, D., Cerveny, D., Michelangeli, M., Bose, A. P. H., McCallum, E. S., Hellström, G., Fick, J., Brooks, B. W., Brodin, T., & Bertram, M. G. (2026). Cocaine pollution alters the movement and space use of Atlantic salmon (Salmo salar) in a large natural lake. Current Biology, 36(8), 2018–2027.e4. https://doi.org/10.1016/j.cub.2026.03.026
  15. Terranova, F., Todaro, L., Forte, X., Ludynia, K., Geldenhuys, D., Mathevon, N., Reby, D., & Favaro, L. (2026). Acoustic remote sensing with deep learning enables non-invasive estimation of seabird nest density. Ecological Informatics, 99, Article 104017. https://doi.org/10.1016/j.ecoinf.2026.104017
  16. Rodrigues-Morgado, M., Ward, R. D., Villoslada, M., Astover, A., & Sepp, K. (2026). Unravelling drivers of organic matter dynamics in Baltic coastal wetlands using the TBI method. Estuarine, Coastal and Shelf Science, 332, 109746. https://doi.org/10.1016/j.ecss.2026.109746
  17. Hildebrandt, N., & Sander, L. (2026). Sediment properties regulate pioneer plant performance in salt marshes: a mesocosm study of Salicornia spp. Estuarine, Coastal and Shelf Science, Article 110391. https://doi.org/10.1016/j.ecss.2026.110391
  18. Cheng, Z., Yu, L., Bayse, S., Duan, X., Yang, H., Liu, M., Tian, H., & Gao, L. (2026). Size selectivity of trammel nets for sampling black bream (Megalobrama skolkovii) in the Yangtze River. Fisheries Research, 302, 107846. https://doi.org/10.1016/j.fishres.2026.107846
  19. Rieker, D., Buscot, F., Dittrich, S., Hoppe, B., Kellner, H., Bässler, C., & Moll, J. (2026). Effects of forest management intensity on multi-alpha and multi-beta diversity. Forest Ecology and Management, 622, Article 124337. https://doi.org/10.1016/j.foreco.2026.124337
  20. Schotanus, E. T., ten Doeschate, M. T. I., Brownlow, A. C., Dabin, W., Deaville, R., Gröne, A., Haelters, J., Heesterbeek, H., Jauniaux, T., Jensen, T. K., Kristensen, N. M., Lennon, R. L., Leopold, M. F., Peltier, H., Thøstesen, C. B., Williams, R. S., & IJsseldijk, L. L. (2026). Spatiotemporal and demographic variability in body condition of North Sea harbour porpoises. Global Ecology and Conservation, 69, e04275. https://doi.org/10.1016/j.gecco.2026.e04275
  21. Zhao, X., Zheng, Z., Schmid, B., Zhao, Y., Zhao, D., Wu, B., & Zeng, Y. (2026). Patterns and drivers of vegetation resilience across China and the negative impact of warm droughts. Geography and Sustainability, 100448. https://doi.org/10.1016/j.geosus.2026.100448
  22. Campbell, K., Horger, M. N., Pavlakos, G., Parma, V., & Marshall, P. J. (2026). Dynamics of infant preshaping: Longitudinal analysis using automated hand pose tracking from home video. Infant Behavior and Development, 84, Article 102232. https://doi.org/10.1016/j.infbeh.2026.102232
  23. Golawski, A., Skórka, P., Mitrus, C., Sulej, A., & Polakowski, M. (2026). Managing rural biodiversity in winter: the interplay of feeders, snow cover and landscape structure in Central European villages. Journal of Environmental Management, 397, 128328. https://doi.org/10.1016/j.jenvman.2025.128328
  24. Funnell, T. R., Brenden, T. O., Keilig, S. Q., Krabbenhoft, C. A., Kraus, R. T., MacDougall, T., Markham, J., Murray, C., Robinson, J., Wilson, C. C., & Vandergoot, C. S. (2026). Thermal habitat use of lake trout in Lake Erie. Journal of Great Lakes Research, 52(5), Article 102876. https://doi.org/10.1016/j.jglr.2026.102876
  25. Attlan, O., Pessarrodona, A., Wood, G., & Wernberg, T. (2027). Functional restructuring of kelp forest macroinvertebrate communities under tropicalisation. Marine Environmental Research, 223, Article 108465. https://doi.org/10.1016/j.marenvres.2026.108465

1–25 of 108