mu3: mu3

View source: R/mu3.R

mu3R Documentation

mu3

Description

The function computes the unbiased estimate of the third central moment

Usage

mu3(x, na.rm = FALSE)

Arguments

x

numeric vector of at least length 3

na.rm

logical value indicating whether NA values should be stripped before the computation proceeds.

Details

The function mu3 computes the unbiased estimate of the third central moment of a given vector. The input must numeric (as determined by is.numeric) and of length at least 3 (excluding NA's. If na.rm is TRUE, the NA entries in the given vector will be ignored.

Value

The unbiased sample central moment of X

Author(s)

Ken Kelley kkelley@nd.edu, Francis Bilson Darku fbilsond@nd.edu, Bhargab Chattopadhyay bhargab@utdallas.edu

Examples

x <- rnorm(10)
mu3(x)
y <- c(1, 3, 1, 5, 6, 3, NA, 3 ,4, NA, 2)
mu3(y, na.rm = TRUE)


yelleKneK/SMSD documentation built on Nov. 23, 2022, 6:40 p.m.