test_u_normal {agfh}R 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')

[Package agfh version 0.2.1 Index]