ScalarKurt: ScalarKurt

Description Usage Arguments Details Value Author(s) Examples

View source: R/ScalarKurt.R

Description

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

Usage

1
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

Details

For Koziol kurtosis only the upper tail is meaningful

Value

statistic
pvalue

Author(s)

Cinzia Franceschini and Nicola Loperfido

Examples

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

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