doornik_hansen {MVN} | R Documentation |
Doornik-Hansen Test for Multivariate Normality
Description
Performs the DoornikâHansen omnibus test by transforming the data to approximate normality and combining skewness and kurtosis measures to test for multivariate normality.
Usage
doornik_hansen(data, bootstrap = FALSE, B = 1000, cores = 1)
Arguments
data |
A numeric matrix or data frame with observations in rows and variables in columns. |
bootstrap |
Logical; if |
B |
Integer; number of bootstrap replicates used when
|
cores |
Integer; number of cores for parallel computation when
|
Value
A data frame with one row containing the following columns:
Test
, the name of the test ("Doornik-Hansen");
Statistic
, the value of the test statistic;
df
, the degrees of freedom;
and p.value
, the p-value from a chi-square approximation.
Examples
## Not run:
data <- iris[1:50, 1:2]
dh_result <- doornik_hansen(data)
dh_result
## End(Not run)
[Package MVN version 6.1 Index]