ptrans {mhtboot}R Documentation

Transformation of order statistics of the p value distributions

Description

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

Usage

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

## 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)

[Package mhtboot version 1.3.3 Index]