Learn R Programming

rgr (version 1.1.0)

gx.summary1: Display a one-line Summary Statistics Report

Description

Displays a concise one-line summary statistics report, below a heading line, consisting of sample size, number of NAs in the input vector; minimum, maximum and quartiles; robust estimates of the standard deviation (MAD and interquartile based measure); mean, standard deviation and coefficient of variation (%); and the standard error, and lower and upper 95% confidence limits on the mean. See Details for the results of setting log = TRUE.

Usage

gx.summary1(xx, xname = deparse(substitute(xx)), log = FALSE)

Arguments

xx
name of the variable to be processed.
xname
an informative display title, e.g., xlab = "Cu (mg/kg) in <2 mm="" o-horizon="" soil"<="" code=""> rather than the default variable name of deparse(substitute(xx)).
log
if the summary statistics are required following a log10 transformation, set log = TRUE.

Details

Setting log = TRUE results in a log transformation for the parametric statistical estimates. The maximum, minimum, quartiles and robust estimates of spread are estimated and reported in natural measurement units. Of the parametric statistics, the mean (the geometric mean) and 95%confidence are reported backtransformed into natural measurement units. If all the results are required following a log10, or some other transformation, this can be achieved by executing the transformation in thecall, e.g., gx.summary1(log10(Cu)) or gx.summary1(sqrt(Cu)).

See Also

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

Examples

Run this code
## Make test data available
data(kola.o)
attach(kola.o)

## Generates an initial display
gx.summary1(Cu)

## Provide a more informative display
gx.summary1(Cu, "Cu (mg/kg) in <2 mm Kola O-horizon soil")

## As above but with a log10 transformation to display
## the geometric mean, etc.
gx.summary1(Cu, "Cu (mg/kg) in <2 mm Kola O-horizon soil", log = TRUE)

## Detach test data
detach(kola.o)

Run the code above in your browser using DataLab