is.normal: is.normal

View source: R/math.normality.R

is.normalR Documentation

is.normal

Description

Evaluates if a vector 'x' is follows a normal distribution or not

Usage

is.normal(x, y = NULL, p.sig = 0.05, stop.on.error = TRUE)

Arguments

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

Details

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

Value

(bool) TRUE if the vector is normal, FALSE in any other case

Examples


is.normal(mtcars$mpg)

is.normal(mtcars$mpg, y = mtcars$vs)


feranpre/feR documentation built on Nov. 22, 2022, 2:29 a.m.