Learn R Programming

robustbase (version 0.7-6)

adjboxStats: Statistics for Skewness-adjusted Boxplots

Description

Computes the statistics for producing boxplots adjusted for skewed distributions as proposed in Hubert and Vandervieren (2004).

Usage

adjboxStats(x, coef = 1.5, a = -4, b = 3, do.conf = TRUE, do.out = TRUE)

Arguments

x
a numeric vector for which adjusted boxplot statistics are computed.
coef
number determining how far whiskers extend out from the box, see boxplot.stats.
a, b
scaling factors multiplied by the medcouple mc() to determine outlyer boundaries; see the references.
do.conf,do.out
logicals; if FALSE, the conf or out component respectively will be empty in the result.

Value

  • A list with the components
  • statsa matrix, each column contains the extreme of the lower whisker, the lower hinge, the median, the upper hinge and the extreme of the upper whisker for one group/plot. If all the inputs have the same class attribute, so will this component.
  • na vector with the number of observations in each group.
  • coefa matrix where each column contains the lower and upper extremes of the notch.
  • outthe values of any data points which lie beyond the extremes of the whiskers.

See Also

adjbox(), also for references, the function which mainly uses this one; further boxplot.stats.

Examples

Run this code
data(condroz)
astat <- adjboxStats(condroz[,"Ca"])
astat

Run the code above in your browser using DataLab