Learn R Programming

DataSum (version 0.1.0)

shapiro_normality_test: Perform Normality Test

Description

This function performs the Shapiro-Wilk test if the sample size is between 3 and 5000. Otherwise, it performs the Anderson-Darling test.

Usage

shapiro_normality_test(data)

Value

A character string indicating whether the data is "Normal" or "Not Normal".

Arguments

data

A numeric vector.

Examples

Run this code
shapiro_normality_test(rnorm(100))

Run the code above in your browser using DataLab