Description Usage Arguments Value Examples
Runs MiRKAT function using the specified weights for each taxon.
Runs MiRKAT function using the specified weights for each taxon.
1 2 3 | wcomp.MiRKAT(x, y, w = rep(1, nrow(x)), cov = NULL)
wcomp.MiRKAT(x, y, w = rep(1, nrow(x)), cov = NULL)
|
x |
matrix with the composition for each individual |
y |
response variable: dichotomous or continuous |
w |
vector of weights for each taxa |
cov |
covariates to hace into account as a possible confounding factors |
x |
matrix with the composition for each individual |
y |
response variable: dichotomous or continuous |
w |
vector of weights for each taxa |
cov |
covariates to hace into account as a possible confounding factors |
the p-value associated to the compositional data with the corresponding vector of weights.
the p-value associated to the compositional data with the corresponding vector of weights.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Matrix of samples
x <- matrix(runif(100), nrow = 10)
# Response vector
y <- rep(c(0,1),5)
# Vector of weights
w <- c(2,rep(1,9))
# Run wcomp.MiRKAT function
wcomp.MiRKAT(x,y,w)
# Matrix of samples
x <- matrix(runif(100), nrow = 10)
# Response vector
y <- rep(c(0,1),5)
# Vector of weights
w <- c(2,rep(1,9))
# Run wcomp.MiRKAT function
wcomp.MiRKAT(x,y,w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.