powered by
Point corresponding to quantile. Calculate the \(x\) point corresponding to a quantile \(F(x)\) using linear interpolation.
qlin(x, y, q)
A numeric vector, specifying the \(x\) values.
A numeric vector, specifying the \(F(x)\) values.
A real number between 0 and 1 inclusive, specifying the desired quantile.
The interpolated quantile, \(x\), corresponding to \(q=F(x)\).
# NOT RUN { x <- rnorm(100) y <- pnorm(x) qlin(x, y, 0.5) # }
Run the code above in your browser using DataLab