Compute Summary Statistics on a Vector

A number of statistical summary functions is provided for use with summary.formula and summarize (as well as tapply and by themselves). computes 3 summary variables: the sample mean and lower and upper Gaussian confidence limits based on the t-distribution. computes the mean and standard deviation. smean.sdl computes the mean plus or minus a constant times the standard deviation. is a very fast implementation of the basic nonparametric bootstrap for obtaining confidence limits for the population mean without assuming normality. These functions all delete NAs automatically. smedian.hilow computes the sample median and a selected pair of outer quantiles having equal tail areas.

htest, bootstrap, nonparametric
Usage, mult=qt((,n-1),, na.rm=TRUE), na.rm=TRUE)

smean.sdl(x, mult=2, na.rm=TRUE),, B=1000, na.rm=TRUE, reps=FALSE)

smedian.hilow(x,, na.rm=TRUE)

for summary functions smean.*, smedian.hilow, a numeric vector from which NAs will be removed automatically
defaults to TRUE unlike built-in S-Plus functions, so that by default NAs are automatically removed
for is the multiplier of the standard error of the mean to use in obtaining confidence limits of the population mean (default is appropriate quantile of the t distribution). For smean.sdl, mult is th
for and specifies the confidence level (0-1) for interval estimation of the population mean. For smedian.hilow, is the coverage probability the outer quantiles sho
number of bootstrap resamples for
set to TRUE to have return the vector of bootstrapped means as the reps attribute of the returned object

  • a vector of summary statistics

See Also

summarize, summary.formula

  • smean.sdl
  • smedian.hilow
x <- rnorm(100)
smedian.hilow(x,  # 25th and 75th percentiles
Documentation reproduced from package Hmisc, version 2.0-0, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.