Fourth4 {Kurt} | R Documentation |
Returns a matrix containing the fourth moments.
Fourth4(data, type, shape)
data |
data matrix |
type |
type=0 is the ordinary fourth moment, type=1 is the centered fourth moment, type=2 is the standardized fourh moment |
shape |
"square" or "rectangular" |
M |
Fourth square moment matrix |
MM |
Fourth rectangular moment matrix |
Cinzia Franceschini and Nicola Loperfido
data(iris)
iris<-data.matrix(iris)#returns the matrix obtained by converting the data frame to numeric mode
Fourth4(iris[,1:4], 1,"square") #returns a matrix containing the fourth moments