Description Usage Arguments Value Examples
View source: R/statistics-utils.R
This function is a wrapper around
It implements the Shapiro-Wilk test that tests the null hypothesis that a sample of values is a sample from a normal distribution.
Thie function can be applied to single vectors or groups of vectors.
shapiro_test(y, by = NULL, data)
A numeric variable whose normality is being tested.
An optional grouping variable
A data frame containing
A tibble data frame with one row for each value of the
or one row overall if there is no
by variable. For the
y variable whose
normality is being tested, for each subset of values corresponding to the
values of they
by variable, or for all values if there is no
variable, return the Shapiro-Wilk statistic, and the corresponding p-value.
shapiro_test(faithful, data = faithfulfaces) shapiro_test(faithful, by = face_sex, data = faithfulfaces)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.