Ejemplo n.º 1
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data_ordinal = data.load('retinopathy')
     cls._data_hierarchical = data.load('retinopathy')
     sample_spaces = []
     ss1 = core.NominalSampleSpace(['0', '12'])
     ss2 = core.NominalSampleSpace(['1', '2'])
     hss = core.HierarchicalSampleSpace(ss1)
     hss.partition('12', ss2)
     sample_spaces.append(hss)
     sample_spaces.append(core.controls.ZZ)
     for i in [0, 1, 2]:
         sample_spaces.append(core.controls.RR)
     cls._data_hierarchical.RET.sample_space = hss
Ejemplo n.º 2
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data_ordinal = data.load('retinopathy')
     cls._data_hierarchical = data.load('retinopathy')
     sample_spaces = []
     ss1 = core.NominalSampleSpace('0', '12')
     ss2 = core.NominalSampleSpace('1', '2')
     hss = core.HierarchicalSampleSpace(ss1)
     hss.partition('12', ss2)
     sample_spaces.append(hss)
     sample_spaces.append(core.controls.ZZ)
     for i in [0,1,2]:
         sample_spaces.append(core.controls.RR)
     cls._data_hierarchical.RET.sample_space = hss
Ejemplo n.º 3
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('cars')          
     oss = cls._data.AirConditioning.sample_space.as_ordinal()
     oss.ordered = ['little_important', 'important', 'very_important']
     cls._data.AirConditioning.sample_space = oss
     cls._data.Sex.sample_space.reference = 'women'
     cls._data.Age.sample_space.reference = '18_23'
Ejemplo n.º 4
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('cars')
     oss = cls._data.AirConditioning.sample_space.as_ordinal()
     oss.ordered = ['little_important', 'important', 'very_important']
     cls._data.AirConditioning.sample_space = oss
     cls._data.Sex.sample_space.reference = 'women'
     cls._data.Age.sample_space.reference = '18_23'
Ejemplo n.º 5
0
 def setUpClass(cls):
     """Test Binomial regression construction"""
     # cls.predictor_init()
     # cls._canonical_model = glm.BinomialRegression(cls._kappa, cls._pred, cls._canonical_link)
     cls._data = data.load('crabs')
     for index, event in enumerate(cls._data.Satellites.events):
         if event.value > 0:
             cls._data.Satellites.events[index] = core.DiscreteElementaryEvent(1)
Ejemplo n.º 6
0
 def setUpClass(cls):
     """Test Binomial regression construction"""
     # cls.predictor_init()
     # cls._canonical_model = glm.BinomialRegression(cls._kappa, cls._pred, cls._canonical_link)
     cls._data = data.load('crabs')
     for index, event in enumerate(cls._data.Satellites.events):
         if event.value > 0:
             cls._data.Satellites.events[
                 index] = core.DiscreteElementaryEvent(1)
Ejemplo n.º 7
0
 def setUpClass(cls):
     """Test Poisson regression construction"""
     #cls.predictor_init()
     #cls._canonical_model = glm.PoissonRegression(cls._pred, cls._canonical_link)
     cls._data = data.load('crabs')
Ejemplo n.º 8
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('retinopathy')         
Ejemplo n.º 9
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('retinopathy')
Ejemplo n.º 10
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('travel')
     cls._data.TravelMode.sample_space.reference = "car"
 def setUpClass(cls):
     """Test Multinomial splitting regression construction"""
     cls._data = data.load('KN03')
Ejemplo n.º 12
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('cars')
     cls._data.AirConditioning.sample_space.reference = 'little_important'
     cls._data.Sex.sample_space.reference = 'women'
     cls._data.Age.sample_space.reference = '18_23'
Ejemplo n.º 13
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('beetles')
     cls._data.data.State.sample_space.reference = 'alive'
Ejemplo n.º 14
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('travel')
     cls._data.TravelMode.sample_space.reference = "car"
Ejemplo n.º 15
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('cars')
     cls._data.AirConditioning.sample_space.reference = 'little_important'
     cls._data.Sex.sample_space.reference = 'women'
     cls._data.Age.sample_space.reference = '18_23'
Ejemplo n.º 16
0
 def setUpClass(cls):
     """Test multivariate data construction"""
     cls._data = data.load('beetles')
     cls._data.data.State.sample_space.reference = 'alive'
Ejemplo n.º 17
0
 def setUpClass(cls):
     """Test Poisson regression construction"""
     #cls.predictor_init()
     #cls._canonical_model = glm.PoissonRegression(cls._pred, cls._canonical_link)
     cls._data = data.load('crabs')
Ejemplo n.º 18
0
 def setUpClass(cls):
     """Test Multinomial splitting regression construction"""
     cls._data = data.load('KN03')