Learn R Programming

Kurt (version 1.1)

Fourth4: Fourth4: fourth moment of a data matrix

Description

Returns a matrix containing the fourth moments.

Usage

Fourth4(data, type, shape)

Arguments

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"

Value

M

Fourth square moment matrix

MM

Fourth rectangular moment matrix

%% \item{comp1 }{Description of 'comp1'} %% \item{comp2 }{Description of 'comp2'} %% ...

Examples

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

Run the code above in your browser using DataLab