B.2 The glance() function

The glance() function will generate model fit summaries from models. It works primarily with lm() and other models, and returns several indices of model fit (depending on the original object).

For lm() objects, importantly, it returns \(R^2\) and adjusted \(R^2\). IT also returns estimates for the AIC and BIC, as well as some other fit statistics.

glance(marketing_lm)

glance() also works for aov() objects, but is perhaps less useful.

glance(stress_aov)