EstNullProp_RB: Right-boundary procedure

Description Usage Arguments Value Examples

View source: R/utils.R

Description

True null proportion (pi_0) estimator of Liang and Nettleton (2012), JRSSB

Usage

1
EstNullProp_RB(pval, lambda.vec = 0.05 * seq_len(19))

Arguments

pval

vector of p-values

lambda.vec

vector of lambda candidates (excluding 0 and 1)

Value

the estimate of the overall true null proportion

Examples

1
2
pval <- c(runif(900), rbeta(100, 1, 10))
EstNullProp_RB(pval)

k22liang/calm documentation built on Nov. 4, 2019, 3:29 p.m.