repetitions: Repetitions index of randomness

View source: R/first_order_dependencies.R

repetitionsR Documentation

Repetitions index of randomness

Description

Compute the frequency a value is repeated in the next round

Usage

repetitions(x)

Arguments

x

vector of distinct options of numbers or characters

Details

This function takes a vector x and counts how often values are followed by the same value in the next position of the sequence. A score of 0 indicates that there are no repetitions of any value in the next position. A higher score indicates an increased degree of repetition.

Value

repetitions of x

References

Ginsburg N, Karpiuk P. Random Generation: Analysis of the Responses. Perceptual and Motor Skills. 1994;79(3):1059-1067. \Sexpr[results=rd]{tools:::Rd_expr_doi("doi:10.2466/pms.1994.79.3.1059")}

Examples

repetitions(ginsburg1994)
repetitions(evans1978[, 1])
repetitions(evans1978[, 2])


TImA97/randfindR documentation built on July 1, 2024, 7:56 p.m.