energy | R Documentation |
Performs the E-statistic test for multivariate normality using a parametric bootstrap to estimate the null distribution of the test statistic.
energy(data, B = 1000, seed = 123)
data |
A numeric matrix or data frame with observations in rows and variables in columns. |
B |
Integer; number of bootstrap replicates to estimate the null distribution. Default is 1000. |
seed |
Optional integer to set the random seed for reproducibility. |
A data frame with one row containing the following columns:
Test
, the name of the test ("E-Statistic");
Statistic
, the observed E-statistic;
and p.value
, the p-value obtained from the bootstrap procedure.
## Not run:
data <- iris[1:50, 1:4]
energy_result <- energy(data, B = 500)
energy_result
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.