View source: R/first_order_dependencies.R
cluster_ratio | R Documentation |
compute the population variance of all response pair frequencies
cluster_ratio(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 computes the population variance
of all response pair frequencies given the number of possible options
.
A score of 0 indicates no variance among response pair frequencies, i.e.,
all response pairs occur equally often. An example of this is the sequence
'1-1-2-2' (response pairs: '1-1', '1-2', '2-2', and '2-1' from the last to
the first value) as each response pair occurs exactly once. Higher scores
indicate an increased degree of variance in the distribution of response pair
frequencies.
cluster ratio 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")}
cluster_ratio(ginsburg1994, 10)
cluster_ratio(evans1978[, 1], 10)
cluster_ratio(evans1978[, 2], 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.