rel_bias: Compute the parameter bias of a vector estimated parameters...

View source: R/eval_metrics.R

rel_biasR Documentation

Compute the parameter bias of a vector estimated parameters versus the ground-truth value of that parameter (modified from Jasper)

Description

Compute the parameter bias of a vector estimated parameters versus the ground-truth value of that parameter (modified from Jasper)

Usage

rel_bias(true_param_value, simulated_param_values)

Arguments

true_param_value

numeric. Value of the ground-truth parameter.

simulated_param_values

k-length numeric vector. k >= 1 and holds the parameter values of the estimated parameters.

Details

This function computes the percentage bias by using the signed mean difference.

Value

numeric vector. Contains two elements: (1) average bias of simulated values versus the ground-truth value and (2) MCMC SE of the bias value

See Also

Morris, Tim P., Ian R. White, and Michael J. Crowther. "Using simulation studies to evaluate statistical methods." Statistics in medicine 38.11 (2019): 2074-2102.


smildiner/simHMM documentation built on July 17, 2022, 2 p.m.