invcdf: Compute the Inverse Cumulative Distribution Function

Description Usage Arguments Value Author(s) See Also Examples

Description

Compute the inverse of the cumulative distribution function for a univariate probability distribution.

Usage

1
invcdf(object, val)

Arguments

object

A univariate probability distribution.

val

A value between 0 and 1.

Value

A value v such that the probability that x≤q v is given by val.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

cdf

Examples

1
2
invcdf(normal(), 0.975)
invcdf(binomialdistribution(10, 0.4), 0.5)

Example output

Loading required package: MASS
[1] 1.959964
[1] 4

lestat documentation built on May 2, 2019, 2:09 p.m.