rxMoments: Extracts statistical moments and calculates skewness and...

Description Usage Arguments Value See Also Examples

Description

Extracts statistical moments and calculates skewness and kurtosis.

Usage

1
rxMoments(formula, inData = NULL, ...)

Arguments

formula

formula, as described in rxFormula. The formula typically does not contain a response variable, i.e. it should be of the form ~ terms.

inData

either a data source object, a character string specifying a '.xdf' file, or a data frame object to summarize.

...

Other arguments passed to rxDataStep

Value

list with names elements for

moments

list of 2nd, 3rd and 4th order moments

skewness

list with elements g1, G1 and b1. These correspond to the definition used for skewness in 1) traditional textbooks, 2) SAS and SPSS and 3) Minitab and BDMP

kurtosis

list with elements g2, G2 and b2. These correspond to the definition used for kurtosis in 1) traditional textbooks, 2) SAS and SPSS and 3) Minitab and BDMP

See Also

rxSummary

Other Data mining functions: rxDiscretize; rxSample2Df; rxTreeDiscretize; rxUnique

Examples

1
2
3
4
5
6
7
8
9
library(RevoScaleR)
if(require("e1071")){
  skewness(iris$Sepal.Length, type=3)
  skewness(iris$Sepal.Width, type=1)
  kurtosis(iris$Sepal.Length, type=3)
  kurtosis(iris$Sepal.Width, type=1)
}
rxMoments(~ Sepal.Length + Sepal.Width, iris)
rxMoments(~ Sepal.Width + Sepal.Length, iris)

RevoEnhancements/RevoEnhancements documentation built on May 9, 2019, 9:46 a.m.