redundancy_index: Redundancy index

View source: R/zero_order_dependencies.R

redundancy_indexR Documentation

Redundancy index

Description

Computes index indicating the evenness of the response frequency distribution.

Usage

redundancy_index(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 weighs the observed information concerning the response frequencies against the highest observable information given the number of possible options. The resulting quotient is subtracted from 1 and then, multiplied with 100. A score of 0 indicates an even distribution of response frequencies, whereas a score of 100 indicates complete redundancy of one response.

Value

redundancy index of x

References

Towse, J.N., Neil, D. Analyzing human random generation behavior: A review of methods used and a computer program for describing performance. Behavior Research Methods, Instruments, & Computers 30, 583–591 (1998). \Sexpr[results=rd]{tools:::Rd_expr_doi("doi:10.3758/BF03209475")}

Examples

redundancy_index(c(1,1,1,1), 2)
redundancy_index(c(2,2,1,1), 2)
redundancy_index(ginsburg1994, 10)
redundancy_index(evans1978[, 1], 10)
redundancy_index(evans1978[, 2], 10)


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