Learn R Programming

rgr (version 1.1.15)

gx.runs: The Wald-Wolfowitz, ‘Runs’, Test

Description

The ‘runs’ test is used to infer whether two states, e.g., > and < some threshold are mutually independent along a traverse. In applied geochemical terms, it tests for pattern coherence. If the pattern of runs is not coherent at the scale of the sampling it will be difficult to identify any spatially consistent dispersion processes.

Usage

gx.runs(n1, n2, u)

Arguments

n1

the number of < threshold sites along a traverse.

n2

the number of > threshold sites along a traverse.

u

the number of runs of > and < threshold sites along the traverse.

References

Stanley, C.R., 2003. Statistical evaluation of anomaly recognition performance. Geochemistry: Exploration, Environment, Analaysis, 3(1):3-12.

See Also

gx.hypergeom

Examples

Run this code
# NOT RUN {
## From Stanley (2003) Table 2

gx.runs(27, 4, 7)
gx.runs(25, 6, 7)
gx.runs(28, 3, 5)
# }

Run the code above in your browser using DataLab