calculate_prediction_interval {topolow}R Documentation

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
)

Arguments

distance_matrix

Matrix of true distances

p_dist_mat

Matrix of predicted distances

confidence_level

Confidence level for interval (default: 0.95)

Value

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


[Package topolow version 1.0.0 Index]