gx.ngr.skew: Estimate the Skewness of a Data Vector

Description Usage Arguments Details Value Note Author(s) Examples

Description

Estimates the skew of a data vector for gx.ngr.stats to be used by gx.ngr.summary to output a NGR Table of summary statistics as a ‘.csv’ file.

Usage

1

Arguments

xx

vector for which the skewness is required.

Details

The formula used, (m3 / m2^1.5) * ((n-1)/n)^1.5, where m3 and m2 are the third and second moments about the mean, respectively, provides an estimate similar to that obtained by Minitab and BMDP.

Value

skew

the estimate of the skewness of the data vector passed to the function.

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.

Author(s)

Robert G. Garrett

Examples

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

## Estimate and display the skewness of the Zn data 
skew <- gx.ngr.skew(Zn)
skew

## Alternately
skew <- gx.ngr.skew(rnorm(0,1,1000))
skew

## Detach test data
detach(sind)


Search within the rgr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.