Learn R Programming

agfh (version 0.2.1)

test_u_normal: 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)

Value

A list containing

name

authors of normality test applied

statistic

scalar value of test statistics

p.value

corresponding p-value from 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.

Examples

Run this code
  sample <- rnorm(100)
  test_u_normal(sample, 'SW')

Run the code above in your browser using DataLab