Learn R Programming

simMetric (version 0.1.1)

relativePrecision: 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
)

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.

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 estimates should be removed before empSE calculation.

Examples

Run this code
relativePrecision(estimates_A=rnorm(n=1000), estimates_B=rnorm(n=1000))

Run the code above in your browser using DataLab