Learn R Programming

distributions3 (version 0.1.2)

variance: Compute the moments of a probability distribution

Description

The functions variance, skewness, and kurtosis are new generic functions for computing moments of probability distributions such as those provided in this package. Additionally, the probability distributions from distributions3 all have methods for the mean generic. Moreover, quantiles can be computed with methods for quantile. For examples illustrating the usage with probability distribution objects, see the manual pages of the respective distributions, e.g., Normal or Binomial etc.

Usage

variance(x, ...)

skewness(x, ...)

kurtosis(x, ...)

Arguments

x

An object. The package provides methods for probability distribution objects, e.g., those created by Normal() or Beta() etc.

...

Further arguments passed to or from other methods. Unevaluated arguments will generate a warning to catch mispellings or other possible errors.

Value

A numeric scalar

See Also

mean, quantile, cdf, random