bias: Calculate the bias

View source: R/bias.R

biasR Documentation

Calculate the bias

Description

Calculates the bias of the model estimates from the true value and the Monte Carlo standard error for this estimate.

Usage

bias(true_value, estimates, get = c("bias", "bias_mcse"), na.rm = FALSE, ...)

Arguments

true_value

The true value which is being estimated.

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

...

Additional arguments to be ignored.

Value

A named vector containing the estimate and the Monte Carlo standard error for the bias.

Examples

bias(true_value=0, estimates=rnorm(100))

simMetric documentation built on Nov. 1, 2022, 1:06 a.m.