View source: R/first_order_dependencies.R
repetitions | R Documentation |
Compute the frequency a value is repeated in the next round
repetitions(x)
x |
vector of distinct options of numbers or characters |
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.
repetitions of x
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")}
repetitions(ginsburg1994)
repetitions(evans1978[, 1])
repetitions(evans1978[, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.