ksnormal: Kolmogorov-Smirnov-Test against Normal distribution

Description Usage Arguments Value Examples

View source: R/tests.R

Description

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

Usage

1

Arguments

x

Vector of data to test.

Value

p.value from ks.test.

Examples

1
2
3
4
5
6
7
# 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 May 8, 2021, 9:06 a.m.