powered by
Tests whether a histogram is significantly different from a uniform distribution.
uniform.test(hist.output, B = NULL)
result of chi-squared test.
output from a call to hist.
hist
number of replicates for chi-squared permutation.
Eric Archer eric.archer@noaa.gov
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