hz | R Documentation |
Performs Henze and Zirkler's test to assess multivariate normality based on a log-normal approximation of the test statistic.
hz(
data,
use_population = TRUE,
tol = 1e-25,
bootstrap = FALSE,
B = 1000,
cores = 1
)
data |
A numeric matrix or data frame with observations in rows and variables in columns. |
use_population |
Logical; if |
tol |
Numeric tolerance passed to |
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 ("Henze-Zirkler");
HZ
, the test statistic (numeric);
and p.value
, the p-value computed from a log-normal approximation.
## Not run:
data <- iris[1:50, 1:4]
hz_result <- hz(data)
hz_result
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.