Learn R Programming

RVAideMemoire (version 0.9-35)

byf.shapiro: Shapiro-Wilk test for factor levels

Description

Perform a Shapiro-Wilk test on a numeric variable per level of a factor.

Usage

byf.shapiro(formula, data)

Arguments

formula
a formula of the form a ~ b where a gives the data values and b a factor giving the corresponding groups.
data
an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).

Value

  • methodname of the test.
  • data.namea character string giving the names of the data.
  • tabtable of results.

See Also

byf.qqnorm, shapiro.test

Examples

Run this code
data(iris)
byf.shapiro(Sepal.Length~Species,data=iris)

Run the code above in your browser using DataLab