Learn R Programming

Kurt (version 1.1)

Fourth: Fourth: matrices of fourth moments or fourth cumulants

Description

Returns a matrix containing either the fourth moments or the fourth cumulants. It recalls the functions Fourth4 and Cum4.

Usage

Fourth(data, type, shape, feature)

Arguments

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.

Value

M

Fourth square moment matrix

MM

Fourth rectangular moment matrix

K4

Fourth cumulants of the given data

%% ...

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab