Description Usage Arguments Details Author(s) See Also Examples
Computes the (optionally centered and/or absolute) sample moment of a certain order.
1 |
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 whether centered moments are to be computed. |
absolute |
a logical value indicating whether absolute moments are to be computed. |
na.rm |
a logical value indicating whether |
When center
and absolute
are both FALSE
, the
moment is simply sum(x ^ order) / length(x)
.
Kurt Hornik and Friedrich Leisch
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.