check_pvalues: Check p-values

Description Usage Arguments Value Author(s)

View source: R/mktest.r

Description

Takes a pair of vectors of estimates and their p-values for some hypothesis test, and uses qvalue methods from storey and Tibshirani to estimate the number of True Negatives (pi0) and creat a p-value histogram. It doesn't consider cases where the estimate is undefined.

Usage

1
check_pvalues(estimates, pvals, plot = TRUE)

Arguments

estimates

numeric verctor of estimates

pvals

numeric vector of p-values

plot

plot or not

Value

a list with elements pi0 with the point estimate of pi0 and p1 which is a ggplot2 plot or NULL in case parameter plot was FALSE

Author(s)

Sur Herrera Paredes


surh/HMVAR documentation built on Aug. 18, 2021, 1:21 a.m.