This function was directly borrowed from github user kokrah.

## Source

Kwame Okrah's qsmooth R package Compute quantile statistics

This function was directly borrowed from github user kokrah.

Kwame Okrah's qsmooth R package Compute quantile statistics