#simulate some data sets: matrices of log-abundance levels
nsam<-5 #number of individuals
nfeat<-6 #number of features (metabolites, genes,...)
diffs<-c(1,4) #features with differential log-abundance levels
lfc<-5 #differential quantity
# create xprnSet, xprnSetPair and numeric objects:
x <- matrix(runif(nfeat*nsam), nrow = nfeat, ncol = nsam) #case
y <- matrix(runif(nfeat*nsam), nrow = nfeat, ncol = nsam) #control
x[diffs,] <- x[diffs,] + lfc
# examples: ----------
z1 <- nIC.est(x=x,opt='BIC')
z2 <- nIC.est(x=x,opt='BF')
z3 <- nIC.est(x=x,opt='AIC')
z4 <- nIC.est(x=x,y=y,opt='BIC')
z5 <- nIC.est(x=x,y=y,opt='BF')
z6 <- nIC.est(x=x,y=y,opt='AIC')
Run the code above in your browser using DataLab