Compare the original strata's distances to the knn version
original_compare_plot(data, casevar, stratavar, threshold_results)An list with items:
The ggplot displayed
A table showing proportion of pairs exceeding numeric threshold chosen
The original data
The variable that defines cases vs. controls
The variable that defines the strata
See get_threshold