oddRatioFunc {BiCausality}R Documentation

oddRatioFunc function

Description

Given the samples in the n by d matrix mat where n is a number of samples and d is a number of dimensions. This function computes an odd ratio value of variables of ith and jth dimensions from a given an aligned list of transactions D (compute by D<-VecAlignment(mat)).

Usage

oddRatioFunc(D, i, j, z = c(), slack = 0.001)

Arguments

D

is an aligned list of transactions that was converted from mat.

i

is an ith dimension in mat for computing the odd ratio with.

j

is an jth dimension in mat for computing compute the odd ratio with.

z

is a conditioning d-dimensional vector on D. Given k non-negative-bit positions of z, all k bit positions of samples in the subset of D must have similar values with these bits.

slack

is a parameter to prevent the issue of division by zero.

Value

This function returns an odd ratio value of variables of ith and jth dimensions from D.

Examples

oddRatioFunc(D,i=1,j=2)


[Package BiCausality version 0.1.4 Index]