Learn R Programming

distr6 (version 1.5.2)

kthmoment: Kth Moment

Description

Kth standardised or central moment of a distribution

Usage

kthmoment(object, k, type = c("central", "standard", "raw"), ...)

Arguments

object

Distribution.

k

the kth moment to calculate

type

one of 'central', 'standard' or 'raw', abbreviations allowed

...

Passed to $genExp.

Value

If univariate, the given k-moment as a numeric, otherwise NULL.