mat {BiCausality}R Documentation

A simulation dataset

Description

A dataset containing simulated data that is used for examples in the package. The matrix mat is generated by the following code.

seedN<-2022

n<-200 # 200 individuals

d<-10 # 10 variables

mat<-matrix(nrow=n,ncol=d) # the input of framework

#Simulate binary data from Bernoulli distribution distribution where the probability of value being 1 is 0.5.

for(i in seq(n)) { set.seed(seedN+i)

mat[i,] <- rbinom(n=d, size=1, prob=0.5) }

mat[,1]<-mat[,2] | mat[,3] # 1 causes by 2 and 3

mat[,4] <-mat[,2] | mat[,5] # 4 causes by 2 and 5

mat[,6] <- mat[,1] | mat[,4] # 6 causes by 1 and 4

Usage

mat

Format

A matrix with 200 samples and 10 dimensions generated from Bernoulli distribution.

mat

It is a 200 by 10 matrix where n is a number of transactions or samples and d is a number of dimensions.

...


[Package BiCausality version 0.1.4 Index]