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

View source: R/auxtests.R

ks.unif.testR Documentation

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.

Author(s)

Andrew Hart and Servet Martínez

See Also

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

Examples

#Generate an IID uniform(0,1) sequence
u <- runif(1000)
ks.unif.test(u)

spgs documentation built on Oct. 3, 2023, 5:07 p.m.