expect {Risk} | R Documentation |
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 |
b |
the upper end point of the distribution specified by |
... |
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
expect("norm", -Inf, Inf)
[Package Risk version 1.0 Index]