Learn R Programming

rgr (version 1.1.0)

gx.summary: Compiles a Table of Summary Statistics

Description

This function is a sub-engine between the main summary statistics engine, gx.stats, and the gx.summary.* display functions. Its sub-engine function is to select the required results from the gx.stats computations, and additionally compute 95% confidence bounds on means.

Usage

gx.summary(xx, log = log)

Arguments

xx
name of the variable to be processed.
log
if it will be required to display summary statistics following a log10 transformation of the data, set log = TRUE.

Value

  • tablea 15-element vector containing summary statistics, see below:
  • [1]the sample size, N.
  • [2]the number of NAs removed from the data passed for processing.
  • [3:7]the minimum value, Q1, Median, Q3 and maximum value.
  • [8]the Median Absolute Deviation (MAD).
  • [9]the Inter-Quartile Standard Deviation (IQSD).
  • The contents of elements [10:15] depend on the value of log
  • [10]the data (sample) Mean.
  • [11]the data (sample) Standard Deviation (SD).
  • [12]the Coefficient of Variation as a percentage (CV%).
  • [13]the Standard Error (S.E.) of the Mean.
  • [14]the Lower 95% Confidence Limit on the Mean.
  • [15]the Upper 95% Confidence Limit on the Mean.
  • If log = TRUE, the results for the mean, [13], and confidence limits, [14:15], are backtransformed to the natural scale. The returned table is rounded to 4 significant figures.

See Also

gx.stats, ltdl.fix.df, remove.na,