mu4 | R Documentation |
A function to compute the unbiased sample central fourth moment.
mu4(x, na.rm = FALSE)
x |
A numeric vector of at least length 4. |
na.rm |
This parameter controls whether NA values are removed from
the data prior to calculation. Default is |
The function mu4
computes the unbiased sample central moment
of a given vector. The input must numeric (as determined by
is.numeric
) and of length at least 4
(excluding NA
's. If na.rm
is TRUE
, the NA
entries in the given vector will be ignored.
The calculated moment.
x <- c(1:5) mu4(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.