kolmogorov_smirnov {agfh}R Documentation

Kolmogorov-Smirnov Normality Test

Description

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

Usage

  kolmogorov_smirnov(samples)

Arguments

samples

vector of values to be tested

Details

Wrapper function for corresponding functionality in stats. Originally, from Kolmogorov (1933).

Value

A list containing

name

name of normality test applied i.e. 'Komogorov Smirnov'

statistic

scalar value of test statistics

p.value

corresponding p-value from test

Source

Kolmogorov (1933) via stats.

Examples

  sample <- rnorm(100)
  kolmogorov_smirnov(sample)

[Package agfh version 0.2.1 Index]