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

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/col.yule.R

Description

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

Usage

1
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

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

Rfast documentation built on Dec. 11, 2021, 9:59 a.m.