Using Kolmogorov Smirnov Test in R
I designed 3000 experiments, so that in one experiment there are 4 groups (treatment), in each group there are 50 individuals (subjects). For each experiment I do a standard one way ANOVA and proof if their p.values has a uni probability function under the null-hypothesis, but ks.test rejects this assumption and I cant see why? subject<-50 treatment<-4 experiment<-list() R<-3000 seed<-split(1:(R*subject),1:R) for(i in 1:R){ e<-c() for(j in 1:subject){ set.seed(seed[[i]][j]) e<-c(e,rmvnorm(mean=rep(0,treatment),sigma=diag(3,4),n=1,method="chol")) } experiment<-c(experiment,list(matrix(e,subject