mardia: Multivariate Skewness and Kurtosis

Description Usage Arguments Value Author(s) Examples

View source: R/moments.R

Description

Multivariate Skewness and Kurtosis

Usage

1
mardia(X)

Arguments

X

Matrix or data frame.

Value

Returns a vector with the following elements

b1

Estimate of multivariate skewness ≤ft( b_{1, k} \right) .

b1.chisq

chi-square statistic ≤ft( \frac{nb_{1, k}}{6} \right) .

b1.df

Degrees of freedom ≤ft( \frac{k(k + 1)(k + 2)}{6} \right) .

b1.p

p-value associated with the chi-square statistic.

b2

Estimate of multivariate kurtosis ≤ft( b_{2, k} \right) .

b2.z

z-statistic ≤ft( \frac{b_{2, k} - k ≤ft( k + 2 \right)}{√{\frac{8 k ≤ft( k + 2 \right)}{n}}} \right) .

b2.p

p-value associated with the z-statistic.

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

1
2
3
4
5
6
7
8
9
set.seed(42)
n <- 100
mu <- c(0, 0, 0)
Sigma <- matrix(
  data = c(1, 0.5, 0.5, 0.5, 1, 0.5, 0.5, 0.5, 1),
  ncol = 3
)
X <- MASS::mvrnorm(n = n, mu = mu, Sigma = Sigma)
mardia(X)

jeksterslabds/jeksterslabRdist documentation built on Aug. 9, 2020, 7:33 a.m.