The function [AaH,pup,adpval] = zweistufen(psd,indexsd,k,alpha) is a subfunction in fdr.m. In fdr.m is zweistufen.m used as an procedure named 'BKY' for Benjamini. Krieger and Yekutieli (2001). For help use the main-function fdr.m. REFERENCES: [1] Hemmelmann C, Horn M, Suesse T, Vollandt R, Weiss S. New concepts of multiple tests and their use for evaluating high-dimensional EEG data. J Neurosci Methods. 2005 Mar 30;142(2):209-17. [2] Copyright (C) 2006 Claudia Hemmelmann <claudia.hemmelmann@mti.uni-jena.de> Adapted by A Schloegl <a.schloegl@ieee.org> Dec 2006 *** This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either Version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --------------------------------------------------------------------------