series: Series index of randomness

View source: R/first_order_dependencies.R

seriesR Documentation

Series index of randomness

Description

Compute frequency with which values are followed by their most adjacent predecessors and successors

Usage

series(x, options)

Arguments

x

vector of distinct options of numbers or characters

options

number of available options in sequence

Details

This function takes a vector x and counts how often values are followed by their most adjacent predecessor and successors given the number of possible options. This function includes series from the lowest to the highest value and vice versa. An example of a series would be '1,2,3' (options = 3). The resulting score of this sequence is 3 (from 1 to 2, from 2 to 3, and from 3 to 1). The highest possible score equals the number of values in a sequence when each value is followed by its most adjacent predecessor or successor. The lowest possible score is 0 when each value is followed by another value than its predecessor or successor.

Value

series 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

series(ginsburg1994, 10)
series(evans1978[, 1], 10)
series(evans1978[, 2], 10)


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