Learn R Programming

rgr (version 1.1.15)

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

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

gx.ngr.stats(xx)

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.

See Also

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

Examples

Run this code
# NOT RUN {
## 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)
# }

Run the code above in your browser using DataLab