ptrans: Transformation of order statistics of the p value...

Description Usage Arguments Details Value Examples

View source: R/bootfunctions.R

Description

This function applys transformation on the bootstrap distribution of order statistics of p values.

Usage

1
ptrans(porder, trans = "default")

Arguments

porder

matrix of p value order statistics, rows indicate replicates

trans

one of ("default","normal","none") indicating trnasformation of -log(1-p), which is by default. Or inverse normal cdf transformation or no transformation.

Details

The transformation of p values must be monotonically increasing. The user can use their own transofrmation, however, this function supports only the commonly used transformations. These are -log(1-p) transformation, inverse normal cdf and identiy transformation.

Value

matrix with transformed distribution.

Examples

1
2
3
4
5
6
7
## Not run: 
X <- datgen(n=100,m=80,m0=20,sigeff=1,Sigma = 0.25*diag(80))
porder <- pboot.1sample(X=X,B=100,ncpus = 1)
porder.tr <- ptrans(porder,trans="normal")
plotpboot(porder.tr)

## End(Not run)

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