Column-wise Yule's Y (coefficient of colligation) {Rfast}R Documentation

Column-wise Yule's Y (coefficient of colligation)

Description

Column-wise Yule's Y (coefficient of colligation).

Usage

col.yule(x, y = NULL, ina)

Arguments

x

A matrix with 0 and 1. Every column refers to a different sample or variable.

y

A second matrix, of the same dimensions as x, with 0 and 1. Every column refers to a different sample or variable.

ina

If y is NULL, ina must be specified. This is a numeric vector with 1s and 2s, indicating the group of each row.

Details

Yule's coefficient of colligation is calculated for every column.

Value

A vector with Yule's Y, one for every column of x is returned.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>

References

Yule G. Udny (1912). On the Methods of Measuring Association Between Two Attributes. Journal of the Royal Statistical Society, 75(6):579-652.

See Also

yule, odds

Examples

x <- matrix(rbinom(300 * 10, 1, 0.5), ncol = 10)
ina <- rep(1:2, each = 150)
res<-col.yule( x, ina = ina )

[Package Rfast version 2.1.0 Index]