View source: R/test_univariate_normality.R
test_univariate_normality | R Documentation |
Performs one of several common univariate normality tests on each numeric variable in a vector, matrix, or data frame.
test_univariate_normality(data, test = c("SW", "CVM", "Lillie", "SF", "AD"))
data |
A numeric vector, matrix, or data frame with observations in rows and variables in columns. Non-numeric columns are dropped with a warning. Each column is tested individually. |
test |
A character string specifying the normality test to use.
Choices are: |
A data frame with one row per variable and the following columns:
Test
, the name of the test used;
Variable
, the name of the tested variable;
Statistic
, the test statistic;
and p.value
, the associated p-value.
## Not run:
data(iris)
test_univariate_normality(iris[, 1:4], test = "AD")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.