ksnormal | R Documentation |
ksnormal
is a convenience function around ks.test, testing against
Normal distribution.
If less than 2 values are provided, NA is returned.
ksnormal(x, lillie = TRUE)
x |
Vector of data to test. |
lillie |
Logical, should the Lilliefors test be used? Defaults to TRUE |
p.value from ks.test.
# 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, lillie=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.