.libPaths('\Rlib')
in R. Then the library can be loaded bylibrary(efs)
Besides the documentation, I think the following 2 examples might help understand the procedure.
# load data
data(gs.test,gs.null);
# 'gs.test' contains all LR test statistics from MIM applied to the Brem's yeast data.
# We claimed 5182 QTL for 3367 expression traits with FDR 8%.
# Among them, there are 1242 traits with 2 or more QTL.
#
test<-gs.test;
# 'null' contains all null statistics from permutation tests
null<-gs.null;
# estimating p0.
p <- getP0 (test,null,p0.method="efron",p0.quantile=0.25);
#find locfdr for each qtl
f <- find.locfdr (test, null, P0=p);
test <- attach.locfdr(test,f);
# estimate fdr among all positive findings
result <- compute.FDR(test);
# replication and modification of John storey's method as published in Plos biology Aug 2005.
# Using F statistics from 2 cycles of sequential genome scans using storey's original method; null statistics are obtained using Churchill's 1994 and 1996 method;
null <- o.null;
# Or, using F statistics from M2 that contains only main effects;
test <- m.test;
null <- m.null;
# Or, using F statistics from the restricted search, comparing M2 vs M1 only if F statistic of the the first QTL is larger than 13.94.
test <- r.test;
null <- r.null;
p <- getP0 (test,null, p0.method ="storey");
f <- find.locfdr (test, null, P0=p);
test <- attach.locfdr(test,f);
result <- find.QTL (test,FDR=0.1,n.QTL=2);