Shapiro-Wilk检验Performs the Shapiro-Wilk test of normality#例子1:shapiro.test(rnorm(100, mean = 5, sd = 3))shapiro.test(runif(100,min = 2, max = 4))
quantile(x, probs = seq(0, 1, 0.25), na.rm = FALSE, names = TRUE, type = 7, ...)
#例子2:
> quantile(rivers, probs=seq(.2,.8,.2)) # quintiles20% 40% 60% 80% 291 375 505 735 > quantile(rivers, probs=seq(.1,.9,.1)) # deciles 10% 20% 30% 40% 50% 60% 70% 80% 90% 255 291 330 375 425 505 610 735 1054 > quantile(rivers, probs=.55) # 55th percentile55% 460> quantile(rivers, probs=c(.05,.95)) # and so on 5% 95% 230 1450