Learn R Programming

Risk (version 1.0)

expect: Expectation

Description

Computes expectation for a given ditribution

Usage

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

References

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