oruns_test: Runs Test

View source: R/oruns_test.R

oruns_testR Documentation

Runs Test

Description

Perform a runs test on the input data to test for clustering or randomness.

Usage

oruns_test(x)

Arguments

x

A numeric vector representing the input data

Value

an r4pde.oruns object.

An r4pde.oruns object is a list containing:

  • U, number of runs,

  • EU, expected number of runs,

  • sU, standard deviation of the expected number of runs

  • Z, Z-score of the observed number of runs,

  • pvalue, the p-value of the Z-score, and

  • result, the test result of either "aggregation or clustering" or "randomness"

See Also

Other Spatial analysis: AFSD(), BPL(), count_subareas(), count_subareas_random(), fit_gradients(), join_count(), oruns_test_boustrophedon(), oruns_test_byrowcol(), plot_AFSD()

Examples

oruns_test(c(1, 0, 1, 1, 0, 1, 0, 0, 1, 1))


r4pde documentation built on July 2, 2025, 5:09 p.m.