gx.ngr.stats: Computes Summary Statistics for a NGR Report Table

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Builds a vector of summary statistics for gx.ngr.summary to output a NGR Report table of summary statistics as a ‘.csv’ file from estimates made by gx.stats and gx.ngr.skew.

Usage

1

Arguments

xx

vector for which NGR Report Table summary statistics are required.

Value

table

the computed summary statistics to be used in function gx.ngr.summary. The list returned, table, is a 29-element vector, see below:

[1]

the sample size, N.

[2]

the number of NAs in the input vector.

[3]

the data (sample) Mean.

[4]

the data (sample) Standard Deviation (SD).

[5]

the data (sample) Skew.

[6]

the Coefficient of Variation as a percentage (CV%).

[7]

the data (sample) Geometric Mean.

[8]

the data (sample) Median.

[9]

the data (sample) Median Absolute Deviation (MAD).

[10]

the Robust Coefficient of Variation as a percentage (RCV%).

[11:20]

the minimum value, and the 1st, 2nd, 5th, 10th, 20th, 25th (Q1), 30th, 40th and 50th (Q2) percentiles.

[21:29]

the 60th, 70th, 75th (Q3), 80th 90th, 95th, 98th and 99th percentiles and the maximum value.

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. Display of the number of NAs found by function remove.na is suppressed in remove.na as the information is included in the display from this function.

Author(s)

Robert G. Garrett

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Make test data available
data(sind)
attach(sind)

## Generate and display the results for Zn 
table <- gx.ngr.stats(Zn)
table

## Detach test data
detach(sind)

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

Related to gx.ngr.stats in rgr...