% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/moments.R
\name{sample.moments}
\alias{sample.moments}
\title{Sample moments}
\usage{
sample.moments(
  x,
  na.rm = FALSE,
  raw = TRUE,
  central = TRUE,
  coef = TRUE,
  order = 1:4
)
}
\arguments{
\item{x}{numeric vector of values}

\item{na.rm}{logical; strip \code{NA} values before computation?}

\item{raw}{logical; compute raw moments?}

\item{central}{logical; compute central moments?}

\item{coef}{logical; compute standardised coefficients (CV, skewness,
kurtosis)?}

\item{order}{integer vector; raw moment orders (default \code{1:4})}
}
\value{
a named list with zero or more of:
\describe{
\item{\code{m}}{raw moments}
\item{\code{mu}}{central moments}
\item{\code{coefficients}}{CV, skewness, kurtosis}
}
}
\description{
Computes raw moments, central moments, and standardised coefficients (CV,
skewness, kurtosis) from a numeric sample.
}
\examples{

library(CoSMoS)

x <- rnorm(1000)
sample.moments(x)

y <- rparetoII(1000, 10, .1)
sample.moments(y)

}
\seealso{
\code{\link{moments}}, \code{\link{checkTS}}
}
\keyword{moments}
