moment | R Documentation |
This function computes the sample moment of specified order.
moment(x, order = 1, central = FALSE, absolute = FALSE, na.rm = FALSE)
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? |
Lukasz Komsta
set.seed(1234) x <- rnorm(10) moment(x) moment(x,order=3,absolute=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.