powered by
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.
a ~ b
a
b
an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).
formula
environment(formula)
name of the test.
a character string giving the names of the data.
table of results.
byf.qqnorm, shapiro.test
byf.qqnorm
shapiro.test
# NOT RUN { data(iris) byf.shapiro(Sepal.Length~Species,data=iris) # }
Run the code above in your browser using DataLab