FarmTest: Factor Adjusted Robust Multiple Testing

Performs robust multiple testing for means in the presence of known and unknown latent factors. It implements a robust procedure to estimate distribution parameters using the Huber's loss function and accounts for strong dependence among coordinates via an approximate factor model. This method is particularly suitable for high dimensional data when there are many variables but only a small number of observations available. Moreover, the method is tailored to cases when the underlying distribution deviates from Gaussian, which is commonly assumed in the literature. Besides the results of hypotheses testing, the estimated underlying factors and diagnostic plots are also output. Multiple comparison correction is done after estimating the proportion of true null hypotheses using the method in Storey (2015) <>. For detailed description of methods and further references, see the papers on the 'FarmTest' method: Fan et al. (2017) <arXiv:1711.05386> and Zhou et al. (2017) <arXiv:1711.05381>.

Version: 1.0.3
Depends: R (≥ 3.3.0)
Imports: graphics, stats, Rcpp, grDevices, utils, methods
LinkingTo: Rcpp, RcppArmadillo
Suggests: knitr, rmarkdown
Published: 2018-05-29
Author: Koushiki Bose [aut, cre], Yuan Ke [aut], Wen-xin Zhou [aut]
Maintainer: Koushiki Bose <koush.bose at>
License: GPL-2
NeedsCompilation: yes
CRAN checks: FarmTest results


Reference manual: FarmTest.pdf
Vignettes: FarmTest-vignette
Package source: FarmTest_1.0.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X binaries: r-release: FarmTest_1.0.3.tgz, r-oldrel: FarmTest_1.0.3.tgz
Old sources: FarmTest archive


Please use the canonical form to link to this page.