plotPvals {modnets} | R Documentation |
Plot the ECDF of p-values from resampling
Description
Plots the empirical cumulative distribution function of the p-values related to iterated resampling via bootstrapping or multi-sample splitting.
Usage
plotPvals(x, outcome = 1, predictor = 1, title = TRUE, alpha = 0.05)
Arguments
x |
Output from |
outcome |
Character string or numeric value (in terms of columns in the dataset) to indicate which outcome to plot the p-value distribution for. |
predictor |
Character string or numeric value (in terms of columns in the dataset) to indicate which predictor to plot the p-value distribution for. |
title |
If |
alpha |
The false discovery rate. Defaults to .05 |
Details
See Meinshausen, Meier, & Buhlmann (2009) for details.
Value
Returns a plot based on the relationship between a particular outcome and predictor.
References
Meinshausen, N., Meier, L., & Buhlmann, P. (2009). P-values for high-dimensional regression. Journal of the American Statistical Association. 104, 1671-1681.
See Also
Examples
x <- resample(ggmDat, sampMethod = "bootstrap")
plot(x, what = 'pvals')
plot(x, 'pvals', outcome = 'V2', predictor = 'V1')