Re: [R] ks.test() with 2 samples vs. 1 sample an distr. function

2017-11-16 Thread peter dalgaard
I suspect that that reply just replicates the question. There are two issues: The distribution of the test statistic is different, which may be unsurprising. However, the test statistic itself is also different which may be a bit more subtle. It may help to plot(ecdf(xi)) and similarly x. The

Re: [R] ks.test() with 2 samples vs. 1 sample an distr. function

2017-11-15 Thread David L Carlson
In the first example you are performing a one-sample test against a continuous cumulative distribution (in this case a normal distribution). In the second case you are performing a two-sample test. You drew your values for x non-randomly by specifying fixed intervals along a normal distribution,