Computes various error metrics including in-sample and out-of-sample errors, and Completeness statistics for model evaluation.
error_calculator_comparison(p_dist_mat, truth_matrix, input_matrix)
A list containing:
A data.frame
with detailed error metrics for each point-pair, including InSampleError
, OutSampleError
, and their percentage-based counterparts.
A single numeric value representing the completeness statistic, which is the fraction of validation points for which a prediction could be made.
Matrix of predicted distances
Matrix of true distances
Matrix of input distances (may contain NAs and is used to find the NAs' pattern)
Input requirements and constraints:
Matrices must have matching dimensions
Row and column names must be consistent between matrices
NAs are allowed and handled appropriately
Threshold indicators (< or >) in input matrix are processed correctly