powered by
This function computes the sample moment of specified order.
moment(x, order = 1, central = FALSE, absolute = FALSE, na.rm = FALSE)
a numeric vector of data.
order of the moment to be computed
a logical value - if central moments are to be computed.
a logical value - if absolute moments are to be computed.
a logical value - remove NA values?
# NOT RUN { set.seed(1234) x <- rnorm(10) moment(x) moment(x,order=3,absolute=TRUE) # }
Run the code above in your browser using DataLab