@@ -143,26 +143,6 @@ def variable_name(self):
143143 """str representing the name of the superheading variable."""
144144 return self ._dimensions [0 if self .ndim < 2 else 1 ].name
145145
146- @lazyproperty
147- def _alpha (self ):
148- """float confidence-interval threshold for pairwise-t (sig) tests."""
149- # TODO: remove me when summary_pairwise_indices, summary_p_vals and
150- # summary_t_stats will be moved from measures/pairwise_significance.py to
151- # matrix/measures.py
152- return self ._cube .alpha_values [0 ]
153-
154- @lazyproperty
155- def _alpha_alt (self ):
156- """Alternate float confidence-interval threshold or None.
157-
158- This is an optional secondary confidence interval allowing two-level
159- significance testing. Value is None if no alternate alpha was specified by user.
160- """
161- # TODO: remove me when summary_pairwise_indices, summary_p_vals and
162- # summary_t_stats will be moved from measures/pairwise_significance.py to
163- # matrix/measures.py
164- return self ._cube .alpha_values [1 ]
165-
166146 @lazyproperty
167147 def _available_measures (self ):
168148 """sorted list of available CUBE_MEASURE members in the cube response."""
@@ -183,21 +163,6 @@ def _dimensions(self):
183163 "must be implemented by each subclass"
184164 ) # pragma: no cover
185165
186- @lazyproperty
187- def _only_larger (self ):
188- """True if only the larger of reciprocal pairwise-t values should appear.
189-
190- In general, pairwise-t tests are reciprocal. That is, if A is significant with
191- respect to B, then B is significant with respect to A. Having a letter in both
192- columns can produce a cluttered appearance. When this flag is set by the user,
193- only the cell in the reciprocal pair having the largest value gets a letter.
194- Defaults to True unless explicitly set False.
195- """
196- # TODO: remove me when summary_pairwise_indices, summary_p_vals and
197- # summary_t_stats will be moved from measures/pairwise_significance.py to
198- # matrix/measures.py
199- return self ._cube .only_larger
200-
201166 @lazyproperty
202167 def _transforms_dict (self ):
203168 """dict holding transforms for this partition, provided as `transforms` arg.
@@ -1236,6 +1201,26 @@ def zscores(self):
12361201
12371202 # ---implementation (helpers)-------------------------------------
12381203
1204+ @lazyproperty
1205+ def _alpha (self ):
1206+ """float confidence-interval threshold for pairwise-t (sig) tests."""
1207+ # TODO: remove me when summary_pairwise_indices, summary_p_vals and
1208+ # summary_t_stats will be moved from measures/pairwise_significance.py to
1209+ # matrix/measures.py
1210+ return self ._columns_dimension .pairwise_significance_spec .alpha_values [0 ]
1211+
1212+ @lazyproperty
1213+ def _alpha_alt (self ):
1214+ """Alternate float confidence-interval threshold or None.
1215+
1216+ This is an optional secondary confidence interval allowing two-level
1217+ significance testing. Value is None if no alternate alpha was specified by user.
1218+ """
1219+ # TODO: remove me when summary_pairwise_indices, summary_p_vals and
1220+ # summary_t_stats will be moved from measures/pairwise_significance.py to
1221+ # matrix/measures.py
1222+ return self ._columns_dimension .pairwise_significance_spec .alpha_values [1 ]
1223+
12391224 @lazyproperty
12401225 def _assembler (self ):
12411226 """The Assembler object for this slice.
@@ -1279,6 +1264,21 @@ def _dimensions(self):
12791264 )
12801265 )
12811266
1267+ @lazyproperty
1268+ def _only_larger (self ):
1269+ """True if only the larger of reciprocal pairwise-t values should appear.
1270+
1271+ In general, pairwise-t tests are reciprocal. That is, if A is significant with
1272+ respect to B, then B is significant with respect to A. Having a letter in both
1273+ columns can produce a cluttered appearance. When this flag is set by the user,
1274+ only the cell in the reciprocal pair having the largest value gets a letter.
1275+ Defaults to True unless explicitly set False.
1276+ """
1277+ # TODO: remove me when summary_pairwise_indices, summary_p_vals and
1278+ # summary_t_stats will be moved from measures/pairwise_significance.py to
1279+ # matrix/measures.py
1280+ return self ._columns_dimension .pairwise_significance_spec .only_larger
1281+
12821282 @lazyproperty
12831283 def _row_variance (self ):
12841284 """2D np.float64 ndarray of row-percentage variance for each cell."""
0 commit comments