ksnormal: Kolmogorov-Smirnov-Test against Normal distribution

View source: R/tests.R

ksnormalR Documentation

Kolmogorov-Smirnov-Test against Normal distribution

Description

ksnormal is a convenience function around ks.test, testing against Normal distribution

Usage

ksnormal(x)

Arguments

x

Vector of data to test.

Value

p.value from ks.test.

Examples

# original ks.test:
ks.test(
  x = mtcars$wt, pnorm, mean = mean(mtcars$wt, na.rm = TRUE),
  sd = sd(mtcars$wt, na.rm = TRUE)
)
# wrapped version:
ksnormal(x = mtcars$wt)

wrappedtools documentation built on Sept. 1, 2022, 5:06 p.m.