powered by
Tests whether a histogram is significantly different from a uniform distribution.
uniform.test(hist.output, B = NULL)
output from a call to hist.
hist
number of replicates for chi-squared permutation.
result of chi-squared test.
# NOT RUN { x.unif <- runif(100) uniform.test(hist(x.unif), B = 1000) x.lnorm <- rlnorm(100) uniform.test(hist(x.lnorm), B = 1000) # }
Run the code above in your browser using DataLab