hitplots: Plot area under p value cdf below a cutoff.

Description Usage Arguments Details Examples

View source: R/bootfunctions.R

Description

Function to plot the area under the cdf below a certain cutoff.

Usage

1
hitplots(porder, alpha = 0.005)

Arguments

porder

the feed from porder.1sample or porder.2sample. matrix of size Bxm. of ordered transformed p values.

alpha

the cutoff of ecd, by default 0.005.

Details

The alpha parameter specifies the cutoff, the plot is the ecdf under alpha. So the right tail of the ecdf would have probability alpha.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
n = 50;m = 250;m0 = 20;
sigeff = 1;
Sigma <- 0.25*diag(m)
X <- datgen(n,m,m0,sigeff,Sigma = Sigma)
porder <- pboot.1sample(X, B = 100, ncpus = 1)
hitplots(porder)

## End(Not run)

Example output

Loading required package: ggplot2
Loading required package: reshape2
[1] 24

mhtboot documentation built on May 2, 2019, 8:15 a.m.