Title: | Estimating Local False Discovery Rates Using the Method of Moments |
---|---|
Description: | Estimation of the local false discovery rate using the method of moments. |
Authors: | Ali Karimnezhad |
Maintainer: | Ali Karimnezhad <[email protected]> |
License: | GPL-3 |
Version: | 1.0 |
Built: | 2024-10-14 03:00:28 UTC |
Source: | https://github.com/cran/LFDR.MME |
Based on a given vector of chi-square test statistics, provides estimates of local false discoveries.
LFDR.MM(x)
LFDR.MM(x)
x |
A vector of chi-square test statistics with one degree of freedom. |
For given features (genes, proteins, SNPs, etc.), the function tests the null hypothesis
,
, indicating that there is no association between feature
and a specific disease, versus its alternative hypothesis
. For each unassociated feature
, it is suppoed that the corresponding test stiatistic
follows a central chi-square distribution with one degree of freedom. For each associated feature
, it is assumed that the corresponding test stiatistic
follows a non-central chi-square distribution with one degree of freedom and non-centrality parameter
. In this packag, association is measured by estimating the local false discovery rate (LFDR), the posterior probability that the null hypothesis
given the test statistic
is true.
This package returns three components as mentioned in the Value section.
Outputs three elements as seen below:
pi0.hat |
estimate of proportion of unassocaited features |
ncp.hat |
estimate of the non-centrality parameter |
lfdr.hat |
estimates of local false discovery rates. |
Code: Ali Karimnezhad.
Documentation: Ali Karimnezhad.
Karimnezhad, A. (2020). A Simple Yet Efficient Parametric Method of Local False Discovery Rate Estimation Designed for Genome-Wide Association Data Analysis. Retrieved from https://arxiv.org/abs/1909.13307
# vector of test statistics for assocaited features stat.assoc<- rchisq(n=1000,df=1, ncp = 3) # vector of test statistics for unassocaited features stat.unassoc<- rchisq(n=9000,df=1, ncp = 0) # vector of test statistics stat<- c(stat.assoc,stat.unassoc) output <- LFDR.MM(x=stat) # Estimated pi0 output$p0.hat # Estimated non-centrality parameter output$ncp.hat # Estimated LFDRs output$lfdr.hat
# vector of test statistics for assocaited features stat.assoc<- rchisq(n=1000,df=1, ncp = 3) # vector of test statistics for unassocaited features stat.unassoc<- rchisq(n=9000,df=1, ncp = 0) # vector of test statistics stat<- c(stat.assoc,stat.unassoc) output <- LFDR.MM(x=stat) # Estimated pi0 output$p0.hat # Estimated non-centrality parameter output$ncp.hat # Estimated LFDRs output$lfdr.hat