Checks whether prediction locations fall outside the environmental envelope of training data. Uses per-variable range checks and multivariate Mahalanobis distance.
Value
A data frame with class "borg_extrapolation" containing:
- mahal_dist
Mahalanobis distance to training centroid
- n_vars_outside
Number of variables outside training range
- vars_outside
Comma-separated names of out-of-range variables
- extrapolating
Logical. TRUE if any variable is out of range
- x, y
Coordinates (if provided)