Computes Summary Statistics for a NGR Report Table
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
.
gx.ngr.stats(xx)
xx |
vector for which NGR Report Table summary statistics are required. |
table |
the computed summary statistics to be used in function |
[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. |
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 NA
s 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.
Robert G. Garrett
## 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.