test_u_normal: Normality Test

View source: R/u_normal.R

test_u_normalR Documentation

Normality Test

Description

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

Usage

  test_u_normal(samples, test)

Arguments

samples

vector of values to be tested

test

name of test, one of 'SW', 'KS', 'CM', 'AD'

Details

Convenience function for consistent syntax in calling shapiro_wilk, kolmogorov_smirnov, cramer_vonmises, and anderson_darling tests.

Value

A list containing

name

authors of normality test applied

statistic

scalar value of test statistics

p.value

corresponding p-value from test

Source

Marten Thompson thom7058@umn.edu

Examples

  sample <- rnorm(100)
  test_u_normal(sample, 'SW')

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