calc_relative {simhelpers}R Documentation

Calculate relative performance criteria and MCSE

Description

Calculates relative bias, mean squared error (relative mse), and root mean squared error (relative rmse). The function also calculates the associated Monte Carlo standard errors.

Usage

calc_relative(
  data,
  estimates,
  true_param,
  criteria = c("relative bias", "relative mse", "relative rmse")
)

Arguments

data

data frame or tibble containing the simulation results.

estimates

Vector or name of column from data containing point estimates.

true_param

Vector or name of column from data containing corresponding true parameters.

criteria

character or character vector indicating the performance criteria to be calculated.

Value

A tibble containing the number of simulation iterations, performance criteria estimate(s) and the associated MCSE.

Examples

calc_relative(data = t_res, estimates = est, true_param = true_param)



[Package simhelpers version 0.2.1 Index]