R: Uniform Distribution Test

uniform.test {swfscMisc} | R Documentation

## 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.

### Author(s)

Eric Archer eric.archer@noaa.gov

### Examples

    x.unif <- runif(100)
    uniform.test(hist(x.unif), B = 1000)
    x.lnorm <- rlnorm(100)
    uniform.test(hist(x.lnorm), B = 1000)

[Package swfscMisc version 1.2 Index]