digram_rep: Digram Repetitions

View source: R/first_order_dependencies.R

digram_repR Documentation

Digram Repetitions

Description

Compute sum of all response pairs minus one

Usage

digram_rep(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 sums up the frequency of all response pairs given the number of possible options. For each response pair that occurs at least once the total sum is reduced by one. A lower score indicates an even distribution of response pairs, i.e., most or all of them occurred. A higher score indicates an uneven distribution of response pairs, i.e., many response pairs did not occur.

Value

digram repetition 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

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


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