Binned Distance

Assuming there are only two groups, the first quartile, median and third quartile is calculated for each group of data X. The absolute difference between these statistics between the two groups are then calculated. Same is done for data PX. Finally an euclidean distance is calculated between the absolute differences of X and PX.

1 | ```
box_dist(X, PX)
``` |

`X` |
a data.frame with one factor variable and one continuous variable |

`PX` |
a data.frame with one factor variable and one continuous variable |

distance between X and PX

1 2 | ```
if(require('dplyr')) {with(mtcars, box_dist(data.frame(as.factor(am), mpg),
data.frame(as.factor(sample(am)), mpg)))}
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.