View source: R/first_order_dependencies.R
| digram_rep | R Documentation |
Compute sum of all response pairs minus one
digram_rep(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 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.
digram repetition 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")}
digram_rep(ginsburg1994, 10)
digram_rep(evans1978[, 1], 10)
digram_rep(evans1978[, 2], 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.