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 |
i |
is an ith dimension in |
j |
is an jth dimension in |
z |
is a conditioning d-dimensional vector on |
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)