moments: Compute the moments of a random variable.

Description Usage Arguments See Also Examples

Description

Compute the moments of a random variable.

Usage

1
2
3
4
5
E(x)

VAR(x)

SD(x)

Arguments

x

random variable to summarise

See Also

Z to standardise an rv by subtracting off mean and dividing by standard deviation

Examples

1
2
3
4
dice <- rv(1:6)
E(dice)
VAR(dice)
SD(dice)

hadley/rv2 documentation built on May 17, 2019, 12:16 p.m.