# NOT RUN {
tmp <- mllRH2(sort(runif(1000,0,1000)),1001,c(2,1,0.5,1))
par(mfrow=c(1,2))
qqunif<-function(dat,...){
dat<-sort(as.numeric(dat));
n<-length(dat);
pvec<-ppoints(n);
plot(pvec,dat,xlab="Theoretical Quantiles",
ylab="Sample Quantiles",main="Uniform Q-Q Plot",...)
}
qqunif(tmp$U)
acf(tmp$U)
ks.test(tmp$U,"punif")
# }
Run the code above in your browser using DataLab