Description Usage Arguments Value Examples
Plot p-values of methytmle objects
1 2 |
x |
Object of class |
... |
Additional arguments passed |
type |
The type of plot to build: one of side-by-side histograms (type "both") comparing raw p-values to FDR-adjusted p-values (using the FDR-MSA correction) or either of these two histogram separately. Set this argument to "raw_pvals" for a histogram of the raw p-values, and to "fdr_pvals" for a histogram of the FDR-corrected p-values. |
Object of class ggplot
containing a histogram or side-by-side
histograms of the raw (marginal) and corrected p-values, with the latter
computed automatically using the method of Tuglus and van der Laan.
1 2 3 4 5 6 7 8 9 10 11 12 13 | suppressMessages(library(SummarizedExperiment))
library(methyvimData)
data(grsExample)
var_int <- as.numeric(colData(grsExample)[, 1])
# TMLE procedure for the ATE parameter over M-values with Limma filtering
methyvim_out_ate <- suppressWarnings(
methyvim(
data_grs = grsExample, sites_comp = 25, var_int = var_int,
vim = "ate", type = "Mval", filter = "limma", filter_cutoff = 0.1,
parallel = FALSE, tmle_type = "glm"
)
)
plot(methyvim_out_ate)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.