Learn R Programming

lestat (version 1.9)

invcdf: Compute the Inverse Cumulative Distribution Function

Description

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

Usage

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\leq v\) is given by val.

See Also

cdf

Examples

Run this code
# NOT RUN {
invcdf(normal(), 0.975)
invcdf(binomialdistribution(10, 0.4), 0.5)
# }

Run the code above in your browser using DataLab