nFDR-internal {nFDR} | R Documentation |
Internal nFDR functions.
Bf(f, k, x) hk(R,k) F.tilde(tt,x,n) f.tilde(tt,x,n, Smooth = TRUE)
x |
a vector of p -values |
R |
vector of r values |
f |
vector of sampled value of function f |
k |
order of Bernstein polynomial approximation |
n |
order of Bernstein polynomial approximation for cdf F or pdf f |
tt |
vector of values on [0,1] at which Bernstein approximation are evaluated |
Smooth |
default is TRUE, F is smoothed first |
Function bf
returns Bernstein approximation of function f
based on sampled values given in argument f
.
Function hk
returns value of h(r,k) used in calculation of the variance of the estimator tilde_pi_0 of π0. Function F.tilde
returns values of Bernstein approximation F_tilde of cdf F
. Function f.tilde
returns values of Bernstein approximation f_tilde of pdf f
with sampled values of f
is numerically estimated by F
, if Smooth = FALSE
, or by F_tilde.
Zhong Guan {zguan@iusb.edu}