normtest: Test for Normality

Description Usage Arguments Value Examples

View source: R/normtest.R

Description

Run 3 different tests of normality, including shapiro.wilks (only if length(x) < 5000), AD test from package nortest, and lillie from nortest

Usage

1

Arguments

x

vector of values to be tested for normality

name

name for saving the results iff there's an error

Value

If everything runs smoothly, this will return a vector with 3 values for each of the 3 tests of normality.

Examples

1
normtest(x = rnorm(100), 'name')

philipshirk/nmmsims documentation built on Feb. 26, 2020, 11:27 a.m.