Learn R Programming

wqtrends (version 1.5.1)

anlz_fit: Return summary statistics for GAM fits

Description

Return summary statistics for GAM fits

Usage

anlz_fit(mod)

Value

A data.frame with summary statistics for GAM fits

Arguments

mod

input model object as returned by anlz_gam

Details

Results show the overall summary of the model as Akaike Information Criterion (AIC), the generalized cross-validation score (GCV), and the R2 values. Lower values for AIC and GCV and higher values for R2 indicate improved model fit.

Examples

Run this code
library(dplyr)

# data to model
tomod <- rawdat %>%
  filter(station %in% 34) %>%
  filter(param %in% 'chl')
  
mod <-  anlz_gam(tomod, trans = 'log10')
anlz_fit(mod)

Run the code above in your browser using DataLab