Fourth {Kurt} | R Documentation |
Returns a matrix containing either the fourth moments or the fourth cumulants. It recalls the functions Fourth4 and Cum4.
Fourth(data, type, shape, feature)
data |
data matrix |
type |
type =0 is the ordinary fourth moment / cumulant; type =1 is the centered fourth moment / cumulant; type =2 is the standardized fourth moment / cumulant |
shape |
"square" or "rectangular" |
feature |
"moment" or "cumulant". If feature is "moment", the function computes the fourth moment of a data matrix. The function recalls the function Fourth4. If feature is "cumulant", the function computes the fourth multivariate cumulant. The function recalls the function Cum4. |
M |
Fourth square moment matrix |
MM |
Fourth rectangular moment matrix |
K4 |
Fourth cumulants of the given data |
Cinzia Franceschini and Nicola Loperfido
data(iris)
iris<-data.matrix(iris)#returns the matrix obtained by converting the data frame to numeric mode
Fourth(iris[,1:4], 1,"square", "moment")#returns a matrix containing the fourth moments