1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
\name{cum3}
\alias{cum3}
\title{
Calculate Third Order Cumulants
}
\description{
Calculates an estimate of the third cumulant, or skewness, of a vector.
Also, if more than one vector is specified, a product-moment of order 3 is
estimated.
}
\usage{
cum3(a, b = a, c = a, unbiased = TRUE)
}
\arguments{
\item{a}{
A vector of observations.
}
\item{b}{
Another vector of observations, if not supplied it is set to the value of \code{a}.
If supplied then it must be the same length as \code{a}.
}
\item{c}{
Another vector of observations, if not supplied it is set to the value of \code{a}.
If supplied then it must be the same length as \code{a}.
}
\item{unbiased}{
A logical value indicating whether the unbiased estimator should be used.
}}
\value{
The required estimate.
}
\details{
The unbiased estimator uses a multiplier of \code{n/((n-1)*(n-2))} where \code{n} is
the sample size, if \code{unbiased} is \code{FALSE} then a multiplier of \code{1/n} is used.
This is multiplied by \code{sum((a-mean(a))*(b-mean(b))*(c-mean(c)))} to give the
required estimate.
}
\keyword{math}
\keyword{multivariate}
% Converted by Sd2Rd version 1.15.
|