R - Generic inference on quantile and quantile effect functions for discrete outcomes