View source: R/zero_order_dependencies.R
redundancy_index | R Documentation |
Computes index indicating the evenness of the response frequency distribution.
redundancy_index(x, options)
x |
vector of distinct options of numbers or characters |
options |
number of available options in sequence |
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.
redundancy index of x
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")}
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.