Learn R Programming

RcmdrPlugin.IPSUR (version 0.2-1.1)

numSummaryIPSUR: Mean, Standard Deviation, Skewness, Kurtosis, and Quantiles for Numeric Variables

Description

numSummary creates neatly formatted tables of means, standard deviations, skewness, kurtosis, and quantiles of numeric variables. Note that the e1071 package must be installed to compute skewness or kurtosis.

Usage

numSummaryIPSUR(data, statistics=c("mean", "sd", "skewness", "kurtosis","quantiles"), 
    quantiles=c(0, .25, .5, .75, 1), groups)
    
# S3 method for numSummaryIPSUR
print(x, ...)

Arguments

data

a numeric vector, matrix, or data frame.

statistics

any of "mean", "sd", "skewness", "kurtosis",or "quantiles", defaulting to the first four.

quantiles

quantiles to report; default is c(0, 0.25, 0.5, 0.75, 1).

groups

optional variable, typically a factor, to be used to partition the data.

x

object of class "numSummaryIPSUR" to print.

arguments to pass down from the print method.

Value

numSummaryIPSUR returns an object of class "numSummaryIPSUR" containing the table of statistics to be reported along with information on missing data, if there are any.

See Also

mean, sd, skewness, kurtosis, quantile.