Learn R Programming

SimDesign (version 0.3)

RE: Compute the relative efficiency of multiple estimators

Description

Computes the relative efficiency given the RMSE values for multiple estimators

Usage

RE(RMSEs)

Arguments

RMSEs
a vector or matrix of mean square error values (see RMSE), where the first element/row will be used as the reference

Value

  • returns a vector/matrix of ratios indicating the relative efficiency compared to the first estimator (which by default will be equal to 1). Values less than 1 indicate worse efficiency, while values greater than 1 indicate better efficiency

Examples

Run this code
pop <- 1
samp1 <- rnorm(100, 1, sd = 0.5)
RMSE1 <- RMSE(samp1, pop)
samp2 <- rnorm(100, 1, sd = 1)
RMSE2 <- RMSE(samp2, pop)

RE(c(RMSE1, RMSE2))

Run the code above in your browser using DataLab