Learn R Programming

topolow (version 1.0.0)

calculate_prediction_interval: Calculate prediction interval for distance estimates

Description

Computes prediction intervals for the estimated distances based on residual variation between true and predicted values.

Usage

calculate_prediction_interval(
  distance_matrix,
  p_dist_mat,
  confidence_level = 0.95
)

Value

A single numeric value representing the margin of error for the prediction interval.

Arguments

distance_matrix

Matrix of true distances

p_dist_mat

Matrix of predicted distances

confidence_level

Confidence level for interval (default: 0.95)