Learn R Programming

HCTR (version 0.1.1)

est.prop: Proportion Estimation

Description

Estimates false null hypothesis Proportion from multiple p-values using higher criticism test estimator.

Usage

est.prop(p.value, cn, adj = TRUE)

Arguments

p.value

A sequence of p-values from test data, not including p-values from covariates.

cn

A value of bounding sequence generated by HCTR::bounding.seq().

adj

A boolean algebra to decide whether to use adjusted Higher Criticism test statistic, the default value is TRUE.

Value

An estimated proportion of false null hypothesis.

References

meinshausen2006estimatingHCTR

Examples

Run this code
# NOT RUN {
set.seed(10)
X <- matrix(runif(n = 10000, min = 0, max = 1), nrow = 100)
result <- bounding.seq(p.value = X)
Y <- matrix(runif(n = 100, min = 0, max = 1), nrow = 100)
test <- est.prop(p.value = Y, cn = result)

# }

Run the code above in your browser using DataLab