expect: Expectation

Description Usage Arguments Value Author(s) References Examples

Description

Computes expectation for a given ditribution

Usage

1
expect(spec, a, b, ...)

Arguments

spec

a character string specifying the distribution (for example, "norm" corresponds to the standard normal)

a

the lower end point of the distribution specified by spec

b

the upper end point of the distribution specified by spec

...

other parameters

Value

A scalar, giving the expected value of the distribution specified by spec

Author(s)

Stephen Chan, Saralees Nadarajah

References

S. Chan and S. Nadarajah, Risk: An R package for risk measures, submitted

Examples

1
expect("norm", -Inf, Inf)

Risk documentation built on May 2, 2019, 3:34 p.m.