supp {BiCausality} | R Documentation |
supp function
Description
This function computes a support value from a matrix X
given a values
.
Usage
supp(X, values)
Arguments
X |
is a matrix n by d where n is a number of transactions or samples and d is a number of dimensions for each sample. |
values |
is a d-dimensional vector
we use to count how many of it within |
Value
This function returns the support of values
in X
by counting
the ratio of how many samples in X
are similar to values
Examples
x <- rbinom(n=100, size=1, prob=0.5)
ny<-rbinom(n=100, size=1, prob=0.25)
y <- x | ny
supp(X=cbind(x,y),values=c(1,1) )
[Package BiCausality version 0.1.4 Index]