Learn R Programming

mbgraphic (version 1.0.1)

skew1d: Measure for one-dimensional skewness

Description

A measure for one-dimensional skewness based on quantiles.

Usage

skew1d(x)

Arguments

x

A numeric vector, a numeric matrix or a data frame.

Value

A single value or a vector including the results of skew1d for each variable (in case of numeric matrices or data frames). If variables from data frames are categorical, 'NA' is returned.

See Also

multimod1d, discrete1d, iaunivariate

Examples

Run this code
# NOT RUN {
data(Election2005)
# }
# NOT RUN {
skew <- skew1d(Election2005)
maxv <- order(skew,decreasing=TRUE)[1:4]
par(mfrow=c(2,2))
for(i in 1:4){
  hist(Election2005[,maxv[i]], xlab="",breaks=30,
  main=paste(names(Election2005[maxv[i]])))
}


# Explore skewness, multimodality and discreteness within interactive environment.
iaunivariate(Election2005)
# }

Run the code above in your browser using DataLab