relativeErrorModSE {simMetric}R Documentation

Calculates the relative (%) error in model standard error

Description

Calculates the relative (%) error in model standard error and the (approximate) Monte Carlo standard error of this estimate.

Usage

relativeErrorModSE(
  se,
  estimates,
  get = c("relativeErrorModSE", "relativeErrorModSE_mcse"),
  na.rm = FALSE,
  ...
)

Arguments

se

A numeric vector containing the standard errors from the model(s).

estimates

A numeric vector containing the estimates from the model(s).

get

A character vector containing the values returned by the function.

na.rm

A logical value indicating whether NA values for se and estimates should be removed before modSE and empSE calculation.

...

Additional arguments to be ignored.

Value

A named vector containing the estimate and the Monte Carlo standard error for the relative (%) error in model standard error.

Examples

relativeErrorModSE(se=rnorm(n=1000, mean=10, sd=0.5), estimates=rnorm(n=1000))

[Package simMetric version 0.1.1 Index]