Skip to content
Prev 380921 / 398500 Next

P-values Kolmogorov–Smirnov test

Thanks for your reply, Rui. 

I don?t think that I can use directly the ks.test because I have a weighted sample (see  m_2 <-m_1[(sample(nrow(m_1), size=i, prob=p_1, replace=F)),]) and I want to account for that. That?s why I am trying to compute everything manually. 

Also, if you look at the results of the ks.test in your simulation, you will notice that the p-value always implies that the sample is always (even with same size = 1) drawn form the same distribution. This looks suspicious to me.

What are your thoughts?