Moments of a Distribution
moments.Rd
Get common moment-related quantities of a distribution: mean, variance, standard deviation (sd), skewness, and kurtosis.
Arguments
- distribution
Distribution to compute skewness from.
- x
Distribution to calculate median from.
- ...
When calculating the mean via integration of the quantile function, arguments passed to
stats::integrate()
.
Details
If there is no method associated with a subclass of
x
, then moments are calculated using
stats::integrate()
from the quantile function.
Median is calculated as the 0.5-quantile. So, when the median is non-unique, we take the smallest of the possibilities.