Skip to contents

This function is mostly a helper function that maps identifier strings to metrics for convenient use in some contexts.

Usage

metric_lookup(
  metric,
  fit = NULL,
  draws = NULL,
  testing_data = NULL,
  vars_of_interest = NULL,
  references = NULL,
  threshold = 0.7,
  psis_object = NULL,
  ppred = NULL,
  quantiles = NULL,
  data_gen_output = NULL,
  fit_conf = NULL,
  ...
)

Arguments

metric

A string that identifies a supported metric

Value

The function corresponding to the identifier string.