DiscreteFDR (version 1.1)

build.stepfuns: Building step functions from pCDFlist

Description

Creates a list of step functions out of p-value CDF supports. That is, creates the list of the CDFs. The end user should not use it.

Usage

build.stepfuns(pCDFlist)

Arguments

pCDFlist

a list of the supports of the CDFs of the p-values. Each support is represented by a vector that must be in increasing order.

Value

A list of CDFs.

Details

The functions returned are the ones denoted by \(F_i\) in the reference paper, see DiscreteFDR.

This version: 2017-09-09.

Examples

Run this code
# NOT RUN {
toyList <- list(c(0.3,0.7,1),c(0.1,0.65,1))
toyStep <- build.stepfuns(toyList)
toyStep[[1]](0.2)
toyStep[[2]](0.2)
toyStep[[1]](0.65)
toyStep[[2]](0.65)

# }

Run the code above in your browser using DataLab