

   SSttaattiissttiiccaall MMoommeenntt

        moment(x, order=1, center=FALSE, absolute=FALSE, na.rm=FALSE)

   AArrgguummeennttss::

          x: a numeric vector containing the values whose
             moment is to be computed.

      order: order of the moment to be computed, the default is
             to compute the first moment, i.e., the mean.

     center: a logical value indicating wether centered moments
             are to be computed.

   absolute: a logical value indicating wether absolute moments
             are to be computed.

      na.rm: a logical value indicating whether `NA' values
             should be stripped before the computation pro-
             ceeds.

   DDeessccrriippttiioonn::

        Computes the (optionally centered and/or absolute)
        moment of order `order'. When `center' and `absolute'
        are both `FALSE', the moment is simply `sum(x ^ order)
        / length(x)'.

   AAuutthhoorr((ss))::

        Kurt Hornik and Friedrich Leisch

   SSeeee AAllssoo::

        `mean', `var'

   EExxaammpplleess::

        x <- rnorm(100)

        # Compute mean and variance
        moment(x)
        moment(x, order=2, center=TRUE)

        # Compute the 3rd absolute centered moment
        moment(x, order=3, center=TRUE, absolute=TRUE)

