gx.summary2: Display a ten-line Summary Statistics Report

Description Usage Arguments Note Author(s) See Also Examples

Description

Displays a more extensive report than gx.summary1. The report includes sample size, number of NAs in the input vector; arithmetic mean and 95% confidence limits, standard deviation and CV%; geometric mean and 95% confidence limits, with standard deviation and CV% in log10 units; median and 95% confidence limits robust estimates of spread (MAD and interquartile based measure); and minimum, maximum, quartiles, and 2nd, 5th, 10th, 90th, 95th and 98th percentiles.

Usage

1
gx.summary2(xx, xname = deparse(substitute(xx)))

Arguments

xx

name of the variable to be processed.

xname

by default the character string for xx is used for the report title. An alternate title can be displayed with xname = "text string", see Examples.

Note

Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see ltdl.fix.df.

Any NAs in the data vector will be removed prior to computation in function gx.stats.

For a less extensive summary statistics display, see gx.summary1. For summary graphical displays see shape or inset.

Author(s)

Robert G. Garrett

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Make test data available
data(kola.o)
attach(kola.o)

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

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

## Detach test data
detach(kola.o)

Example output

Loading required package: MASS
Loading required package: fastICA

  Extended Summary Stats for: Cu
  N and number of NAs:		617 & 0
  Arithmetic Mean and 95% CLs:	43.69 & 24.28 <-> 63.1
  SD and CV%:			245.5 & 561.85%
  Geometric Mean and 95% CLs:	13.15 & 12.15 <-> 14.22
  Log10 Mean and SD:		1.119 & 0.4323
  Median and 95% CLs:		9.69 & 9.07 <-> 10.4
  MAD and IQR estimates of SD:	5.145 & 8.414
  Percentiles: Min  2  5  10  25 - 50 - 75  90  95  98  Max
	2.69 4.703 5.06 5.696 6.85 - 9.69 - 18.2 47.38 98.18 241.1 4080


  Extended Summary Stats for: Cu (mg/kg) in <2 mm Kola O-horizon soil
  N and number of NAs:		617 & 0
  Arithmetic Mean and 95% CLs:	43.69 & 24.28 <-> 63.1
  SD and CV%:			245.5 & 561.85%
  Geometric Mean and 95% CLs:	13.15 & 12.15 <-> 14.22
  Log10 Mean and SD:		1.119 & 0.4323
  Median and 95% CLs:		9.69 & 9.07 <-> 10.4
  MAD and IQR estimates of SD:	5.145 & 8.414
  Percentiles: Min  2  5  10  25 - 50 - 75  90  95  98  Max
	2.69 4.703 5.06 5.696 6.85 - 9.69 - 18.2 47.38 98.18 241.1 4080

rgr documentation built on May 2, 2019, 6:09 a.m.

Related to gx.summary2 in rgr...