normality | R Documentation |
Check normality of a vector of values.
normality(
x,
na.rm = getOption("na.rm", FALSE),
type = getOption("quantile.type", 7)
)
x |
vector of values |
na.rm |
Remove empty values |
type |
an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used. |
na.rm
This 'certestats' package supports a global default setting for na.rm
in many mathematical functions. This can be set with options(na.rm = TRUE)
or options(na.rm = FALSE)
.
For normality()
, quantile()
and IQR()
, this also applies to the type
argument. The default, type = 7
, is the default of base R. Use type = 6
to comply with SPSS.
x <- runif(1000)
normality(x)
x <- rnorm(1000)
normality(x)
x <- rexp(1000, rate = 3)
normality(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.