rdb | R Documentation |
rdb
is used to conduct robust differential abundance analysis for compositional data
rdb(P, Z, X = NULL, alpha = 0.1, fdr = FALSE)
P |
A numerical matrix for compositional data, each row represents a sample (the sum should be 1) and each column represents a component. |
Z |
A binary vector, 1 means treated group and 0 means control group. |
X |
A numerical matrix for observed covariates, each row represents a sample and each column represents a covariates. |
alpha |
A numerical value, indicating the significance level of FWER or FDR. |
fdr |
A boolean value, indicating if FDR is the measure of type I error. TRUE means FDR is used and FALSE means FWER is used. |
This function returns an indicator vector, where each entry correponds to each component of compoositional data.
an indicator vector, where each entry correponds to each column of P. TRUE means it is differential component.
Shulei Wang
m=50
d=100
P=matrix(runif(m*d),nrow=m,ncol=d)
Z=rep(0,m)
Z[1:(m/2)]=1
rdb(P,Z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.