R/filter_outliers.R
test_multinormality.RdTest the multivariate normality of a distribution
test_multinormality( values, test = "Mardia", threshold = 0.05, data, center, warnings = FALSE )
| values | Unidimensional array of numerical values (distances) |
|---|---|
| test | Statistical test used, valid options are "Mardia", "Kurtosis", "Skewness", "KS", "KS-adj", "Shapiro", "Lillie", and "Chisq" |
| threshold | Threshold of significance for the statistical test (default: 0.05) |
| data | Matrix of numerical values containing the observations (one per row, with two columns for X and Y coordinates) |
| center | Center of the observations from |
| warnings | Logical value, to display the warnings and errors caught |
p-value of the test (lower values suggest non normality)
Parameter data is only required for the tests "Mardia",
"Skewness", "Kurtosis" and "Chisq", while parameter center is only
required for "Chisq"