Calculate Non-Intersection Distance
calculate_distance(variable_old, variable_new, bins = 20)
variable_old | variable from `old` data |
---|---|
variable_new | variable from `new` data |
bins | continuous variables are discretized to `bins` intervals of equal size |
Non-Intersection Distance
calculate_distance(rnorm(1000), rnorm(1000))#> [1] 0.064calculate_distance(rnorm(1000), runif(1000))#> [1] 0.626