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)

Curt-Younkin/RStudioConf2017 documentation built on May 6, 2019, 12:54 p.m.