Learn R Programming

Kurt (version 1.1)

ScalarKurt: ScalarKurt

Description

Returns the statistic and the p-value of either Mardia's kurtosis or Koziol's kurtosis tests for normality .

Usage

ScalarKurt(data, feature, type, prob)

Arguments

data

data matrix

feature

"moment" or "cumulant"

type

"Mardia" or "Koziol"

prob

"lower" if probability is P[X <= x], "upper" if probability is P[X > x], "twoside" if probability is computed on both tails

Value

statistic

pvalue

%% ...

Details

For Koziol kurtosis only the upper tail is meaningful

Examples

Run this code
# NOT RUN {
data(iris)
iris<-data.matrix(iris)#returns the matrix obtained by converting the data frame to numeric mode
ScalarKurt(iris[,1:4],"moment","Mardia","upper")#returns the statistic and the p-value
#of Mardia's kurtosis test for normality 
# }

Run the code above in your browser using DataLab