rank.test {hacks}R Documentation

Rank Test for Checking iid Hypothesis

Description

'rank.test' is a non-parametric test, used to test the null hypothesis that the input are values of independent and identically distributed random variables. It is particularly useful for detecting a linear trend in the data.

Usage

rank.test(x)

Arguments

x a vector or a time series object.

Author(s)

Vicky Yang

References

Brockwell and Davis (2002) Introduction to Time Series and Forecasting. Chapter 1. New York: Springer.

See Also

difference.sign.test, turning.point.test

Examples

# sequence with dependency 
x <- arima.sim(n = 150, list(ar = c(0.889)))
rank.test(x)

# iid sequence
rank.test(rnorm(200))

[Package hacks version 0.1-8 Index]