var_digits: Variance of digits

View source: R/zero_order_dependencies.R

var_digitsR Documentation

Variance of digits

Description

Computes the variance of marginal totals

Usage

var_digits(x, options)

Arguments

x

vector of distinct options of numbers or characters

options

number of available options in sequence

Details

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.

Value

variance of digits of x

References

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")}

Examples

var_digits(ginsburg1994, 10)
var_digits(evans1978[, 1], 10)
var_digits(evans1978[, 2], 10)


TImA97/randfindR documentation built on July 1, 2024, 7:56 p.m.