score_accuracy: Score accuracy of estimates.

View source: R/stereotypes.R

score_accuracyR Documentation

Score accuracy of estimates.

Description

Calculates accuracy measures from a data.frame of estimates using a vector of criteria values.

Usage

score_accuracy(
  x,
  criterion,
  methods = c("pearson_r", "mean_abs_error", "sd_error_abs", "mean_error_abs"),
  aggregate = F,
  aggregate_function = wtd_mean,
  ...
)

Arguments

x

(numeric data.frame) A data.frame with estimates. Rows must be cases. Alternatively, a vector of values. If given a vector, it will assume the user wants aggregate-level estimates.

criterion

(numeric vector) A vector of criteria values to score estimates against.

methods

(character vector) Which measures to return. Defaults to c("pearson_r", "mean_abs_error", "sd_error_abs", "mean_elevation_error_abs"). Use "all" to get all.

aggregate

(boolean) Whether to use aggregated estimates.

aggregate_function

(function) Which function to use for aggregation.

...

(named parameters) Additional parameters to pass to the aggregator function.


Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.