Fourth: Fourth: matrices of fourth moments or fourth cumulants

Description Usage Arguments Value Author(s) Examples

View source: R/Fourth.R

Description

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

Usage

1
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

Author(s)

Cinzia Franceschini and Nicola Loperfido

Examples

1
2
3
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

Kurt documentation built on Sept. 20, 2021, 5:17 p.m.