spgs (version 1.0-1)

ks.unif.test: Using ks.test to test for Uniformity on the Unit Interval

Description

Uses ks.test to test that a data vector is uniform on the unit interval. ks.unif.test(x) is merely convenient shorthand for ks.test(x, punif).

Usage

ks.unif.test(x)

Arguments

x

a numeric vector or univariate time series.

Value

A list with class "htest" containing the following components:

statistic

the value of the test statistic.

p.value

the p-value of the test.

method

a character string indicating what type of test was performed.

data.name

a character string giving the name of the data.

See Also

chisq.unif.test, markov.test, diid.test

Examples

Run this code
# NOT RUN {
#Generate an IID uniform(0,1) sequence
u <- runif(1000)
ks.unif.test(u)
# }

Run the code above in your browser using DataLab