DA.lsmeans | R Documentation |
lsmeans
on all features from DAtest
results with allResults = TRUE
Pairwise testing on predictor and covars. Works on "poi", "neb", "lrm", "lma", "lmc", "llm", "llm2", "qpo", "znb", "zpo".
DA.lsmeans( results, variable = "predictor", predictor = NULL, covars = NULL, p.adj = "fdr", ... )
results |
Output from a |
variable |
Which variable to test. Default predictor. Alternatively, the name of a covar |
predictor |
If results come from a paired "lrm", "llm", "lma", "lmc" or "llm2" supply the original predictor variable in the form of as a vector |
covars |
If results come from a paired "lrm", "lma", "lmc", "llm" or "llm2" supply the original covars in the form of a named list |
p.adj |
P-value adjustment method. See |
... |
Additional arguments for |
Require the lsmeans
package
A data.frame with output from lsmeans::pairs and adjusted p.values for each predictor and feature
# Creating random count_table and predictor set.seed(5) mat <- matrix(rnbinom(1500, size = 0.5, mu = 500), nrow = 100, ncol = 15) rownames(mat) <- 1:100 pred <- c(rep("A", 5), rep("B", 5), rep("C", 5)) # Running linear model and then pairwise comparisons on each feature res <- DA.lmc(mat, pred, allResults = TRUE) res.lsm <- DA.lsmeans(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.