score_accuracy | R Documentation |
Calculates accuracy measures from a data.frame of estimates using a vector of criteria values.
score_accuracy(
x,
criterion,
methods = c("pearson_r", "mean_abs_error", "sd_error_abs", "mean_error_abs"),
aggregate = F,
aggregate_function = wtd_mean,
...
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.