swfscMisc (version 1.3)

uniform.test: Uniform Distribution Test

Description

Tests whether a histogram is significantly different from a uniform distribution.

Usage

uniform.test(hist.output, B = NULL)

Arguments

hist.output

output from a call to hist.

B

number of replicates for chi-squared permutation.

Value

result of chi-squared test.

Examples

Run this code
# 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 DataCamp Workspace