shapiro_wilk: Shaprio-Wilk Normality Test

View source: R/u_normal.R

shapiro_wilkR Documentation

Shaprio-Wilk Normality Test

Description

Test a sample against the null hypothesis that it comes from a standard Normal distribution.

Usage

  shapiro_wilk(samples)

Arguments

samples

vector of values to be tested

Details

Wrapper function for corresponding functionality in stats. Originally, from Shapiro and Wilk (1975).

Value

A list containing

name

authors of normality test applied i.e. 'Shapiro Wilk'

statistic

scalar value of test statistics

p.value

corresponding p-value of the test

Source

Shapiro and Wilk (1975) via stats.

Examples

  sample <- rnorm(100)
  shapiro_wilk(sample)

agfh documentation built on July 9, 2023, 6:44 p.m.