View source: R/math.normality.R
is.normal | R Documentation |
Evaluates if a vector 'x' is follows a normal distribution or not
is.normal(x, y = NULL, p.sig = 0.05, stop.on.error = TRUE)
x |
numeric vector |
y |
(default NULL) factor vector to be used as groups |
p.sig |
(default=0.05) value under wich p has to be to reject normality |
If 'y' parameter is passed 'x' will be divided in as many groups as levels has 'y' and return TRUE only if all groups of 'x' pass the normality test
(bool) TRUE if the vector is normal, FALSE in any other case
is.normal(mtcars$mpg) is.normal(mtcars$mpg, y = mtcars$vs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.