performance_metrics: Performance metrics

Description Usage Arguments Examples

View source: R/cv-model-fit.R

Description

Returns named vector of the most common performance metrics

Usage

1
2
3
4
5
6
7
performance_metrics(
  observed,
  predicted,
  SESOI_lower = 0,
  SESOI_upper = 0,
  na.rm = FALSE
)

Arguments

observed

Numeric vector

predicted

Numeric vector

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

na.rm

Should NAs be removed? Default is FALSE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
m1 <- lm_model(
  predictors = iris[2:3],
  outcome = iris[[1]]
)

predicted <- generic_predict(m1)

performance_metrics(
  observed = iris[[1]],
  predicted = predicted
)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.