Description Usage Arguments Value Examples
This function tilts the mixture model fitted from the training tail-areas (or p-values) by conditioning on the average of local fdr's from the testing tail-areas (or p-values)
1 2 3 4 5 |
xl |
The training left-tail areas (or p-values) |
xt |
The testing left-tail areas (or p-values) |
w |
A vector of two numeric values, representing the weights
of the uniform and Beta distributions. See |
a |
A vector of two initial parameter values for Beta distribution. See |
precision |
The precision for convergence. Default value is 1e-8. |
MaxIter |
The maximum iteration for the EM algorhthm. |
interval |
A vector of two numeric values, which determines the range to search the optimal theta. Default is c(-1000L,1000L). |
adjust |
Whether or not to do the model adjustment. Default is TRUE. |
method |
A character chosen from m1, m2. Default is m1. |
type |
A character value, chosen from “left tail area” and “pvalue”. Default is “left tail area”. |
alpha |
A numeric value. Used in method “m1” to determine the probably null region. Default is 0.9. |
q |
A numeric value. The global false discovery rate used in method “m2”, to determine the probable null region. Default is 0.1. |
ncores |
The number of cpus used for implementing this function. |
rel.tol |
the accuracy used in |
tol |
the accuracy used in |
eps |
the smallest positive precision. If x < eps, x = eps; if x > 1-eps, x = 1-eps. |
A dataframe includes xl, xt, fdr, FDR, tfdr, and tFDR, respectively. fdr and FDR are the local and global false discovery rate for each value of xt. tfdr and tFDR are the corresponding tilted local and global false discovery rate, respectively.
The optimal theta calculated by solving log(E(exp(thetah(x))))-ctheta, where c=mean(h(xt)).
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.