View source: R/doornik_hansen.R
doornik_hansen | R Documentation |
Performs the Doornik–Hansen omnibus test by transforming the data to approximate normality and combining skewness and kurtosis measures to test for multivariate normality.
doornik_hansen(data, bootstrap = FALSE, B = 1000, cores = 1)
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
|
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.
## Not run:
data <- iris[1:50, 1:2]
dh_result <- doornik_hansen(data)
dh_result
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.