glance_performance: Model performance summary dataframes using '{broom}' and...

View source: R/hybrid_easystats.R

glance_performanceR Documentation

Model performance summary dataframes using {broom} and {easystats}

Description

Computes indices of model performance for regression models.

Usage

glance_performance(x, ...)

Arguments

x

model or other R object to convert to single-row data frame

...

other arguments passed to methods

Details

The function will attempt to get these details either using broom::glance() or performance::model_performance(). If both function provide model performance measure summaries, the function will try to combine them into a single dataframe. Measures for which these two packages have different naming conventions, both will be retained.

Value

A data frame (with one row) and one column per "index".

Examples


set.seed(123)
mod <- lm(mpg ~ wt + cyl, data = mtcars)
broomExtra::glance_performance(mod)

broomExtra documentation built on April 2, 2022, 5:05 p.m.