October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps:
> x = rnorm(50) > ks.test(x,"pnorm") Output: One-sample Kolmogorov-Smirnov test data: x D = 0.1698, p-value = 0.0994 alternative hypothesis: two-sided
> set.seed(3) > x = runif(n=20, min=0, max=20) > y = runif(n=20, min=0, max=20)
> plot(ecdf(x), do.points = FALSE, verticals=T, xlim=c(0, 20)) > lines(ecdf(y), lty=3, do.points = FALSE, verticals=T)
Read now
Unlock full access