: unidinv (x, n)

For each element of x, compute the quantile (the inverse of the CDF) at x of the discrete uniform distribution which assumes the integer values 1–n with equal probability.

Package: statistics