View source: R/zero_order_dependencies.R
var_digits | R Documentation |
Computes the variance of marginal totals
var_digits(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 response frequencies given the number of possible options
.
A score of 0 indicates an even distribution of response frequencies. Higher
scores indicate an increasing redundancy of one or several responses.
This index is conceptually closely related to the idea of the
redundancy_index
.
variance of digits 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")}
var_digits(ginsburg1994, 10)
var_digits(evans1978[, 1], 10)
var_digits(evans1978[, 2], 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.