normality2flag: Sample normality estimate flag.

normality2flagR Documentation

Sample normality estimate flag.

Description

normality2flag estimates the normality of a vector vector x and returns a discrete flag assessing the normality (normal, non-normal, don't know).

TODO: allow user-supplied normality test?

Usage

normality2flag(x)

Arguments

x

a numeric vector to be tested for normality

Value

a flag of value 1 if normality is not rejected at the 5% level, 2 if normality is rejected at the 5% level, and 3 if normality can't be assesed (not enough data etc.)

Author(s)

Tomas Sieger

See Also

dagostinoTest, normality2color

Examples

normality2flag(rnorm(30))
normality2flag(rnorm(3))
normality2flag(runif(30))

tsieger/tsiMisc documentation built on Dec. 14, 2024, 3:23 p.m.