moment

0th

Percentile

Statistical Moments

This function computes the sample moment of specified order.

Keywords
univar
Usage
moment(x, order = 1, central = FALSE, absolute = FALSE, na.rm = FALSE)
Arguments
x
a numeric vector of data.
order
order of the moment to be computed
central
a logical value - if central moments are to be computed.
absolute
a logical value - if absolute moments are to be computed.
na.rm
a logical value - remove NA values?
Aliases
  • moment
Examples
set.seed(1234)
x <- rnorm(10)
moment(x)
moment(x,order=3,absolute=TRUE)
Documentation reproduced from package moments, version 0.14, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.