Description Usage Arguments Details Value Note Author(s) Examples
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.
1 | gx.ngr.skew(xx)
|
xx |
vector for which the skewness is required. |
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.
skew |
the estimate of the skewness of the data vector passed to the function. |
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.
Robert G. Garrett
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.