Learn R Programming

mhtboot (version 1.3.3)

plotpboot: Quantile plots for p value distributions.

Description

Produces density plots of quantiles of transformed order statistics of p values

Usage

plotpboot(porder)

Arguments

porder
Matrix feeds from pboot. This is a matrix of p values from the bootstrap sampls. Of size Bxm, each row for one bootstrap. The columns indicate the coordinates for testing.

Value

ggplot2 object contatining the plot.

Details

Plot function for pboot

This function plots the order statistics of the quantiles of the transformed p values. As the distribution of the statistic changes as the number of coordinates increase, it should show a change in the curve.

This function uses ggplot2 and reshape library to manipulate data. The final object returned is a ggplot2 image that can be fed into ggsave or any other supported functions.

Examples

Run this code
## Not run: 
# n = 50;m = 250;m0 = 20;
# sigeff = 1;
# Sigma <- 0.25*diag(m)
# X <- datgen(n,m,m0,sigeff,Sigma = Sigma)
# Y <- datgen(n,m,m0,sigeff,Sigma = Sigma)
# porder <- pboot.2sample(X=X,Y = Y, B=100,ncpus = 1)
# plotpboot(porder)
# ## End(Not run)

Run the code above in your browser using DataLab