relativePrecision {simMetric} | R Documentation |
Calculates the relative (%) increase in precision between two methods
Description
Calculates the relative (%) increase in precision between two competing methods (B vs A). As this metric compares two methods directly, it cannot be used in join_metrics()
.
Usage
relativePrecision(
estimates_A,
estimates_B,
get = c("relativePrecision", "relativePrecision_mcse"),
na.rm = FALSE
)
Arguments
estimates_A |
A numeric vector containing the estimates from model A. |
estimates_B |
A numeric vector containing the estimates from model B. |
get |
A character vector containing the values returned by the function. |
na.rm |
A logical value indicating whether NA values for |
Value
A named vector containing the estimate and the Monte Carlo standard error for the relative (%) increase in precision of method B versus method A.
Examples
relativePrecision(estimates_A=rnorm(n=1000), estimates_B=rnorm(n=1000))
[Package simMetric version 0.1.1 Index]