Last chance! 50% off unlimited learning
Sale ends in
Performs a Shapiro-Wilk test on a numeric variable per level of a factor.
byf.shapiro(formula, data)
a formula of the form a ~ b
where a
gives the data values and b
a factor giving the corresponding groups.
an optional data frame containing the variables in the formula formula
. By default the variables are taken from environment(formula)
.
name of the test.
a character string giving the names of the data.
table of results.
# NOT RUN {
data(iris)
byf.shapiro(Sepal.Length~Species,data=iris)
# }
Run the code above in your browser using DataLab