示例#1
0
    def test_metaReg(self): # regular meta regression
        
        python_to_R.dataset_to_dataframe(model=self.model,
                                         included_studies=self.studies,
                                         data_location=self.data_location,
                                         covariates=self.covariates,
                                         cov_ref_values=self.cov_ref_values,
                                         var_name="tmp_obj")
                
        result = python_to_R.run_gmeta_regression(
                                  covariates=self.covariates,
                                  interactions=self.interactions,
                                  fixed_effects=self.fixed_effects,
                                  random_effects_method=self.random_effects_method,
                                  digits=self.digits,
                                  conf_level=self.conf_level,
                                  btt=self.btt,
                                  data_name="tmp_obj")

        # assert result is not None
        self.assertIsNotNone(result, "Result is unexpectedly none!")
示例#2
0
    def test_metaReg_omnibus(self):
        btt_wName = ("Age" , 'covariate')
        btt = (get_variable_by_label(btt_wName[0], model=self.model), 'covariate')
        
        python_to_R.dataset_to_dataframe(model=self.model,
                                 included_studies=self.studies,
                                 data_location=self.data_location,
                                 covariates=self.covariates,
                                 cov_ref_values=self.cov_ref_values,
                                 var_name="tmp_obj")
                
        result = python_to_R.run_gmeta_regression(
                                  covariates=self.covariates,
                                  interactions=self.interactions,
                                  fixed_effects=self.fixed_effects,
                                  random_effects_method=self.random_effects_method,
                                  digits=self.digits,
                                  conf_level=self.conf_level,
                                  btt=btt,
                                  data_name="tmp_obj")
        

        # assert result is not None
        self.assertIsNotNone(result, "Result is unexpectedly none!")