This repository contains the code to produce the all the simulation results and figures in our paper: Empirical Bayes multistage testing for large-scale experiments.
The folder R contains all R files.
epsest.func.Rcontains auxiliary function to estimate the proportion of non-null locations.MSET.Rimplements fixed horizon comparison between our multistage empirical Bayes testing procedure and Optimizely's method using always valid p-values.MSET_stagewise.Rimplements stagewise comparison between our multistage empirical Bayes testing procedure and Optimizely's method using always valid p-values.AMSET.Rimplements adaptive multistage empirical Bayes testing procedure.
The folder Data contains simulation results and figures in our paper.
fixed_horizon_rescontains simulation results for fixed horizon comparisons.stagewise_rescontains simulation results for stagewise comparisons.
The package REBayes that provides Kiefer-Wolfowitz maximum likelihood estimation for mixture models requires the installation of the optimization packageRmosek. Details of installation can be found in Rmosek user guide (https://docs.mosek.com/latest/rmosek/install-interface.html).