Skip to contents

This function computes several performance metrics comparing the estimated parameters (`final_par`) to the true parameter values (`true_value`). It calculates relative bias (RB), mean squared error (MSE), relative mean squared error (re_MSE), coverage probability (CP), and length of the confidence interval (LEN).

Usage

performence.compare(
  true_value = para,
  final_par = c(em_para_re, inti_par, bayes_para_re),
  interval_re = NULL
)

Arguments

true_value

A numeric vector of true parameter values.

final_par

A numeric vector or matrix containing the estimated parameters.

interval_re

A data frame containing the confidence interval bounds (Lower, Upper) for the parameters. Default is NULL.

Value

A list containing the computed values for RB, MSE, re_MSE, CP, and LEN.