Normality Tests in R

Tags

, ,

By using the “nortest” package of R, these tests can be conducted:

library(nortest)

data = rnorm(1000, 10, 2)

  • Perform Anderson-Darling test of normality:
  • ad.test(data)

  • Perform Cramér-von Mises test of normality:
  • cvm.test(data)

  • Perform Pearson chi-square test of normality:
  • pearson.test(data)

  • Perform Shapiro-Francia test of normality:
  • sf.test(data)

  • Performs the Shapiro-Wilk test of normality:
  • shapiro.test(data)

  • Lilliefors (Kolmogorov-Smirnov) test of normality:
  • lillie.test(data)

    Follow

    Get every new post delivered to your Inbox.

    Join 177 other followers