estP0: Estimate the fraction of true null hypotheses.

View source: R/F_estP0.R

estP0R Documentation

Estimate the fraction of true null hypotheses.

Description

Estimate the fraction of true null hypotheses.

Usage

estP0(statObs, fitAll, z0quantRange, smooth.df, evalVal, assumeNormal)

Arguments

statObs

A vector of observed z-values

fitAll

the estimated normal null

z0quantRange

a number of quantiles between 0 and 0.5

smooth.df

degrees of freedom for the spline smoother

evalVal

the value of q at which to evaluate the spline

assumeNormal

A boolean, should normality be assumed for the null distribution?

Details

A natural spline is used over a range of intervals. Based on the qvalue::qvalue() function and Storey and Tibshirani, 2003

Value

The estimated null fraction, the value of the spline evaluated at the first element of z0quantRange


CenterForStatistics-UGent/reconsi documentation built on Nov. 13, 2023, 2:04 a.m.