Learn R Programming

MixStable (version 0.1.0)

evaluate_fit: Evaluate fit quality using RMSE and log-likelihood

Description

Computes RMSE and log-likelihood scores for different mixture models compared to histogram data.

Usage

evaluate_fit(data, methods, x_vals)

Value

Named list of scores per method (RMSE and LogLikelihood).

Arguments

data

Numeric vector of observations.

methods

Named list of parameter sets (each with two components and a weight).

x_vals

Numeric vector. Evaluation grid.