def initialize_test(self, dataframe, groups=None, groupcol='group', valuecol='value', pooling='default', samples=40000, burns=10000, thin=1, ** kwargs):
        group_map = lambda x: x[groupcol] in groups
        if groups is None:
            groups = list(dataframe[groupcol].unique())

        self.mcmcs = {}
        self.mcmc_vars = {}

        # self.groups = groups
        self.groups = []
        self.keys = list(combinations(groups, 2))

        # TODO: may have broken things with locals... fragile move
        self.df = dataframe
        self.groupcol = groupcol
        self.valuecol = valuecol
        self.pooling = pooling
        self.samples = samples
        self.burns = burns
        self.thin = thin

        self.progress_bar = kwargs.get('progress_bar',False)
        if self.delay_statistic != True:
            local_vars = locals()
            del local_vars['self']
            map(lambda x: self.run_model(key=x, **local_vars), self.keys)
            return [self.compute_statistic(statistic=x) for x in self.statistics]
dataset/ETHPy150Open HHammond/kcbo/kcbo/statistical_tests/t_test.py/TTest.initialize_test/original