expect {Risk} | R Documentation |
Computes expectation for a given ditribution
expect(spec, a, b, ...)
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 |
A scalar, giving the expected value of the distribution specified by spec
Stephen Chan, Saralees Nadarajah
S. Chan and S. Nadarajah, Risk: An R package for risk measures, submitted
expect("norm", -Inf, Inf)