ks.unif.test {spgs} | R 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)
[Package spgs version 1.0-4 Index]