powered by
Performs a Shapiro-Wilk test on a numeric variable per level of a factor.
byf.shapiro(formula, data)
name of the test.
a character string giving the names of the data.
table of results.
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)
Maxime HERVE <maxime.herve@univ-rennes1.fr>
byf.qqnorm, shapiro.test
byf.qqnorm
shapiro.test
data(iris) byf.shapiro(Sepal.Length~Species,data=iris)
Run the code above in your browser using DataLab