qlin: Point corresponding to quantile. Calculate the x point...

Description Usage Arguments Value Examples

Description

Point corresponding to quantile. Calculate the x point corresponding to a quantile F(x) using linear interpolation.

Usage

1
qlin(x, y, q)

Arguments

x

A numeric vector, specifying the x values.

y

A numeric vector, specifying the F(x) values.

q

A real number between 0 and 1 inclusive, specifying the desired quantile.

Value

The interpolated quantile, x, corresponding to q=F(x).

Examples

1
2
3
x <- rnorm(100)
y <- pnorm(x)
qlin(x, y, 0.5)

mtloots/alR documentation built on May 23, 2019, 8:18 a.m.