model_performance: Returns a basic summary of a model's performance

View source: R/mod_performance.R

model_performanceR Documentation

Returns a basic summary of a model's performance

Description

Returns a basic summary of a model's performance

Usage

model_performance(
  model,
  data_test,
  y_name,
  metric,
  est_below_cutoff,
  err_above_cutoff
)

Arguments

model

The model to evaluate

data_test

A data.frame of test data

y_name

The variable to explain

metric

The metric to use for error computation

est_below_cutoff

"Acceptable" error in percent

err_above_cutoff

Desired percent of "acceptable" estimated values

Value

A data.frame holding the r.squared and errors metrics

Examples

model_performance(model, data_test, "RESCO")

cottinlola/modeleVariablesAP documentation built on April 30, 2022, 7:42 a.m.