Learn R Programming

performance (version 0.8.0)

model_performance: Model Performance

Description

See the documentation for your object's class:

Usage

model_performance(model, ...)

performance(model, ...)

Arguments

model

Statistical model.

...

Arguments passed to or from other methods, resp. for compare_performance(), one or multiple model objects (also of different classes).

Value

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

See Also

compare_performance() to compare performance of many different models.

Examples

Run this code
# NOT RUN {
model <- lm(mpg ~ wt + cyl, data = mtcars)
model_performance(model)

model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial")
model_performance(model)
# }

Run the code above in your browser using DataLab