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)

calm documentation built on Nov. 8, 2020, 5:33 p.m.