Learn R Programming

MixStable (version 0.1.0)

evaluate_estimation_method: Evaluate estimation method using MSE over multiple trials

Description

Computes the mean squared error (MSE) of a parameter estimation function over several trials.

Usage

evaluate_estimation_method(
  estimator_fn,
  true_params,
  n = 1000,
  trials = 20,
  seed = 42
)

Value

Numeric value representing the average MSE across trials.

Arguments

estimator_fn

Function. Estimation function to evaluate.

true_params

List. True parameters: alpha, beta, gamma, delta.

n

Integer. Number of samples per trial.

trials

Integer. Number of trials to run.

seed

Integer. Random seed for reproducibility.