Skip to content

BUG/ENH: Tukeyhsd, fix unused variance, add Games-Howell - #9487

Merged
josef-pkt merged 6 commits into
statsmodels:mainfrom
josef-pkt:tukeyhsd_bugfix
Jan 25, 2025
Merged

josef-pkt merged 6 commits into
statsmodels:mainfrom
josef-pkt:tukeyhsd_bugfix

Conversation

@josef-pkt

@josef-pkt josef-pkt commented Jan 21, 2025 •

Copy link
Copy Markdown
Member

rebased version closes #9175
see also PR #7332 which has additional unit test and api with connecting_letters

currently only rebased with fixing merge conflicts,
no squashing of commits yet.

@josef-pkt

Copy link
Copy Markdown
Member Author

old pattern:
multicomparison allpairstest return tuple and recarray
return is

        return (
            results_table,
            (res, reject, pvals_corrected, alphacSidak, alphacBonf),
            resarr,
        )

and does not include result from individual tests like degrees of freedom or test statistics.
The test statistics and df of Games-Howell should be the same as allpairstest with Welch's t-test.

apt = mc.allpairtest(lambda *args: stats.ttest_ind(*args, equal_var=False))
apt
(<class 'statsmodels.iolib.table.SimpleTable'>,
 (array([[-5.55747210e+00,  7.08885359e-05],
         [-1.79334336e+00,  9.34218676e-02],
         [ 2.10632849e+00,  5.50776395e-02]]),
  array([ True, False, False]),
  array([2.12665608e-04, 2.80265603e-01, 1.65232918e-01]),
  0.016952427508441503,
  0.016666666666666666),
 array([(b'medical', b'mental', -5.5575, 0.0001, 2.000e-04,  True),
        (b'medical', b'physical', -1.7933, 0.0934, 2.803e-01, False),
        (b'mental', b'physical',  2.1063, 0.0551, 1.652e-01, False)],
       dtype=[('group1', 'O'), ('group2', 'O'), ('stat', '<f8'), ('pval', '<f8'), ('pval_corr', '<f8'), ('reject', '?')]))

print(apt[0])
Test Multiple Comparison <lambda> 
FWER=0.05 method=bonf
alphacSidak=0.02, alphacBonf=0.017
======================================================
  group1      group2     stat   pval  pval_corr reject
------------------------------------------------------
b'medical'   b'mental' -5.5575 0.0001    0.0002   True
b'medical' b'physical' -1.7933 0.0934    0.2803  False
 b'mental' b'physical'  2.1063 0.0551    0.1652  False
------------------------------------------------------

the above default correction is "bonf"
compared to games-howell and to "holm":

print(res.summary())  # new games howell
    Multiple Comparison of Means - Tukey HSD, FWER=0.01     
============================================================
  group1      group2   meandiff p-adj   lower  upper  reject
------------------------------------------------------------
b'medical'   b'mental'   1.8889 0.0002  0.7123 3.0654   True
b'medical' b'physical'   0.8889 0.2059 -0.8106 2.5884  False
 b'mental' b'physical'     -1.0 0.1269 -2.6647 0.6647  False
------------------------------------------------------------

apth = mc.allpairtest(lambda *args: stats.ttest_ind(*args, equal_var=False), method="holm")
print(apth[0])
Test Multiple Comparison <lambda> 
FWER=0.05 method=holm
alphacSidak=0.02, alphacBonf=0.017
======================================================
  group1      group2     stat   pval  pval_corr reject
------------------------------------------------------
b'medical'   b'mental' -5.5575 0.0001    0.0002   True
b'medical' b'physical' -1.7933 0.0934    0.1102  False
 b'mental' b'physical'  2.1063 0.0551    0.1102  False
------------------------------------------------------

bonf has the largest corrected p-values, holm the smallest, Games-Howell is in between
rejection decision is the same in all 3 cases in example

@josef-pkt

Copy link
Copy Markdown
Member Author

we can also use fdr
example fdr_by has corrected pvalues clsoer to GH in example but still smaller (at least the two large pvalues)

apth = mc.allpairtest(lambda *args: stats.ttest_ind(*args, equal_var=False), method="fdr_by")
print(apth[0])
Test Multiple Comparison <lambda> 
FWER=0.05 method=fdr_by
alphacSidak=0.02, alphacBonf=0.017
======================================================
  group1      group2     stat   pval  pval_corr reject
------------------------------------------------------
b'medical'   b'mental' -5.5575 0.0001    0.0004   True
b'medical' b'physical' -1.7933 0.0934    0.1713  False
 b'mental' b'physical'  2.1063 0.0551    0.1515  False
------------------------------------------------------

@josef-pkt

Copy link
Copy Markdown
Member Author

I guess we don't need to include any cleanup and refactoring in this PR.
I think we can merge it with only small changes (and squashing)

We need quite a bit of extra work in multicomp, e.g. #4379, which is not directly related to the main points of this PR.

@josef-pkt

josef-pkt commented Jan 22, 2025 •

Copy link
Copy Markdown
Member Author

TukeyHSDResults is missing a return as pandas DataFrame
add summary table

as extra: we could add option for additional standard p-value correction, if we had uncorrected pvalues or test statistics.

naming convention ?
use_var here
usevar in weightstats.ttest_ind
in other places ?
anova_oneway uses use_var
(later code uses more underline separators)

@josef-pkt

josef-pkt commented Jan 22, 2025 •

Copy link
Copy Markdown
Member Author

something is strange (wrong, unclear)

Tukey results include attributes
res.meandiffs, res.std_pairs, res.df_total
tvalues should be res.meandiffs / res.std_pairs

with use_var="unequal":
the standard error and tvalue of a comparison pair does NOT match up with the 2sample Welch test, (neither scipy.stats nor statsmodels weightstats.
The df (Satterthwaite) match up with weightstats ttest_ind

However, unit test for games-howell passes
There are no separate unit test for the bug-fixed variance computation varcorrection_pairs_unequal

the difference in var is factor 2, sqrt(2) for std_pairs
AFAIR, sqrt(2) was the difference between studentized range and t-statistic in tukey-hsd references.
I need to check which is which, and where we use which. What's the statistic used for sturng, ours and scipy?

cm = ws.CompareMeans.from_data(mc.datali[1], mc.datali[2])
cm.std_meandiff_separatevar / res.std_pairs[-1], np.sqrt(2)
(1.4142135623730951, 1.4142135623730951)

sqrt(2 in last paragraph in section
https://en.wikipedia.org/wiki/Tukey%27s_range_test#The_studentized_range_(q)_distribution

That's a pain, misleading name, definition for std_pairs

tukey_hsd function divides var by 2:

    elif np.size(var_all) > 1:
        var_pairs, df_pairs_ = varcorrection_pairs_unequal(var_all, nobs_all, df)
        var_pairs /= 2.
        # check division by two for studentized range

but then return the std for studentized range in std_pairs, instead of the std of the mean_diff

TukeyHSDResult docstring incorrectly says:
std_pairs : standard deviation of pairwise mean differences
bug in docs or in code?

there are no unit tests for attributes like std_pairs in test_pairwise

To clarify:
tukey hsd treats each pair difference as max-min range value
pvalue is determined by sampling probability that the range of the pair is the largest range among all pairs.
This preserves familywise error rate FWER at the actual maximum, and computes the pvalue for each pair using the total number of pairs.
In a step-up or step-down procedure, we would look at only the remaining number of pairs, test or uncorrected pvalues.

This is equivalent to computing rectangular area of multivariate-t defined by t-statistic of mean diff at each pair.
The only difference is in the sqrt(2) term in the definition of the studentized range compared to t-statistic.

@josef-pkt

Copy link
Copy Markdown
Member Author

and another one

tukey results has attribute variance which is the pooled residual variance, or now, if use_var="unequal" it is the within group variance (for each group).

no docs, no informative name, looks internal
it is used in _simultaneous_ci, effect is to attach ci halfwidth for plotting. The actual confint are not returned anywhere.
That method is private, has leading underscore, only helper function

@josef-pkt

josef-pkt commented Jan 22, 2025 •

Copy link
Copy Markdown
Member Author

Problem with confidence interval plot, looks like a bug

simultaneous ci uses q_crit which is

  • scalar in tukey-hsd case use_var="equal"
  • if use_var="unequal", then the q_crit should be different for each pair, difference because of Satterthwaite degrees of freedom.

current example and unit test has 3 levels.
With 3 levels we also have 3 pairs.
My guess is that plot_simultaneous works because both have the same number of elements.
In other cases this should raise an exception. I need a different example with more groups.
update with 4 groups: ValueError: operands could not be broadcast together with shapes (6,) (4,)

What q_crit should we use in Games-Howell?
It can depend on only the relevant group or on all groups.

  • "own" df, use df from within the group estimation (nobsi -1), but that's not done in tukey-hsd
  • use tukey-hsd df_total, i.e. back to scalar
  • use average (or sum?) of Sattherwaite's df, averaged (summed) over either all pairs (scalar q_crit), or all pairs that involve the current group
    (We have k_pairs df, but we need df for a group, maybe something like sum(df) * k_groups / k_pairs)
  • use some min df to be conservative ?

In any of the cases, the result will not match up directly with the Games-Howell results.

Maybe easiest to justify is use tukey-hsd df_total with group specific variance.
We have scalar df and qcrit but group specific variances.

Another possible problem:
statsmodels.sandbox.stats.multicomp.simultaneous_ci
It looks like (quick skimming), the variances for the groups differ because of differences in nobs_i, even if within/residual variance is taken to be the same across groups.
Current code handles sample size differences already, but this would conflict with the already computed within variances.
Group size handling might be correct if variance is vector, but needs verification.

Correction:
statsmodels.sandbox.stats.multicomp.simultaneous_ci is doing something more complicated
It computes some kind of corrected pairwise average.
Need to check the reference, I never went through the details (not when I reviewed and merged the ci PR)
# Compute the two global sums from hochberg eq 3.32 code comment.

It looks like it might do the correct computation even if variance is vector.
If true, then the only bug is in qcrit used in the ci.

todo:
We need df_total of tukey-hsd in the results, even if games-howell is computed.
Currently I don't see nobs by groups in the results instance. So, we need to add some returns.
Current usage of tuples makes it difficult to add extra returns.

Aside:
If we drop q_crit computation for tukey_hsd helper function for speed-up, then we need to specifically compute it for the confidence intervals.
q_crit = get_tukeyQcrit2(n_means, df_total, alpha=alpha)

@josef-pkt

josef-pkt commented Jan 23, 2025 •

Copy link
Copy Markdown
Member Author

and

currently there are no multiple testing corrected pairwise confidence intervals.
I thought I had examples for those (a long time ago)
update that's wrong
confint is an attribute in results obtained from and computed in the tukey_hsd helper functions
This means q_crit in tukey_hsd helper function is also used for confint.

and

Currently significance level alpha is fixed from the beginning, i.e. when calling tukey_hsd method of wrapper function.
This is used for the rejection decision in summary and for plot_continuous.
When users want to change alpha, then everything needs to be recomputed.

The standard pattern in most other hypothesis test functions is to provide alpha at the end, e.g. as keyword for conf_int.
(Multiple testing pvalue correction includes rejection decision for historical reasons, the literature was written in terms of rejection and not pvalues.)

If we delay computing q_crit until we need it in the results instance, there would not be a reason to specify alpha, We would also need to delay rejection decisions and base those on pvalues instead of critical values.
(update: see correction above, q_crit is also use for conf_int)

Main reason for now is what to do with q_crit inclusion in returns and attributes.
If alpha can be changed in the results, then q_crit does not have a unique value, it depends on alpha. We would need to cache a default or cache a dict with alpha as keys.
Computing q_crit with scipy is expensive, so we only ever want to compute it once.

(That's too much refactoring for now, and needs design decisions. )

Aside: TukeyHSDResults does not have the alpha information, no alpha attribute.

@josef-pkt

josef-pkt commented Jan 23, 2025 •

Copy link
Copy Markdown
Member Author

For this PR, I only need to additionally fix ci_simultaneous using q_crit_hsd.
The rest can wait for another PR.

  • add nobs_groups and alpha attribute to results class (in __init__)
  • compute _q_crit_hsd on demand (if np.size(q_crit) > 1) , cached attribute decorator or manual caching?
  • adjust ci computation

update wrong again

The first arg of TukeyHSDResults.__init__ is the MultiComparison instance. Similarly to the model cases, the results instance holds on to the instance of the creating class MC, and we still have access to all earlier attributes.
res5._multicomp is mc5 is true

Creating the results instance does not free up the memory of data and intermediate arrays.
So we should not hold on to the results instance if we compute many cases.
We could add a remove_data method, or automatically remove it at the end of __init__ processing by setting _multicomp to None.
Method other than __init__ should not directly access the multicomp instance.

@josef-pkt

josef-pkt commented Jan 23, 2025 •

Copy link
Copy Markdown
Member Author

aside:
The first dataset has 4 groups. However it is not used in the unit tests. I guess because the results are too extreme and don't provide numbers that are easy to verify:

mc4 = MultiComparison(tpw.dta["Rust"], tpw.dta["Brand"])
resth4 = mc4.tukeyhsd(alpha=alpha, use_var="equal")
print(resth4.summary())
 Multiple Comparison of Means - Tukey HSD, FWER=0.01  
======================================================
group1 group2 meandiff p-adj   lower    upper   reject
------------------------------------------------------
     1      2     46.3    0.0  42.5941  50.0059   True
     1      3    24.81    0.0  21.1041  28.5159   True
     1      4    -2.67 0.0933  -6.3759   1.0359  False
     2      3   -21.49    0.0 -25.1959 -17.7841   True
     2      4   -48.97    0.0 -52.6759 -45.2641   True
     3      4   -27.48    0.0 -31.1859 -23.7741   True
------------------------------------------------------

The unit test for simultaneous ci (last case in test file) uses the cylinder example.
Current plot fails with shape mismatch in unequal var case.

Additionally, there is a division by zero problem and nans in the results in unequal case but not in equal var case.
The place it occurs looks like the Satterthwaite's df computation.

mc5 = MultiComparison(tpw.cylinders, tpw.cyl_labels)
res5 = mc5.tukeyhsd(alpha=alpha, use_var="unequal")
print(res5.summary())
...\statsmodels\sandbox\stats\multicomp.py:1353: RuntimeWarning: invalid value encountered in true_divide
  dfjoint = varjoint**2 / ((v1 / n1) ** 2 / df1 + (v2 / n2) ** 2 / df2)
...\statsmodels\statsmodels\sandbox\stats\multicomp.py:1413: RuntimeWarning: invalid value encountered in true_divide
  st_range = np.abs(meandiffs) / std_pairs  # studentized range statistic

 Multiple Comparison of Means - Tukey HSD, FWER=0.01 
=====================================================
 group1  group2 meandiff p-adj   lower  upper  reject
-----------------------------------------------------
 France Germany   0.2222 0.8485 -0.8188 1.2632  False
 France   Japan   0.1333 0.8511 -0.3978 0.6645  False
 France  Sweden      0.0    nan     nan    nan  False
 France     USA   2.2899   -0.0  1.5727  3.007   True
Germany   Japan  -0.0889 0.9967 -1.1249 0.9471  False
Germany  Sweden  -0.2222 0.8485 -1.2632 0.8188  False
Germany     USA   2.0676    0.0  0.9587 3.1766   True
  Japan  Sweden  -0.1333 0.8511 -0.6645 0.3978  False
  Japan     USA   2.1565    0.0  1.3122 3.0008   True
 Sweden     USA   2.2899   -0.0  1.5727  3.007   True
-----------------------------------------------------

What is the minimum on a group sample size?
In this case Sweden has two observations.

mc5.groupstats.groupnobs, mc5.groupsunique
(array([ 4,  9, 15,  2, 69], dtype=int64),
 array(['France', 'Germany', 'Japan', 'Sweden', 'USA'], dtype='<U7'))

but problem is that both France and Sweden have zero within variance (endog is discrete in example)

mc5.groupstats.groupvarwithin()
array([0.        , 0.44444444, 0.26666667, 0.        , 3.0912191 ])

This implies that the variance of the mean diff between the two is also zero and we cannot compute a t-statistic.
Maybe not clear: we don't get the zero division warning when computing the tvalue or studentized range. (???)

Tukey-hsd estimates the variance based on all groups and does not have the pairwise problem.

@josef-pkt

josef-pkt commented Jan 23, 2025 •

Copy link
Copy Markdown
Member Author

Interesting example
only one group mean differs from the others
every comparison with US is significant, but no comparison between the other countries is significant.
That's similar to cases in a Monte Carlo simulation article comparing methods.
In this case, it's a very small sample and games-howell might not maintain size properly.

example dropping Sweden (to avoid nans) and increasing alpha from 0.01 to 0.05
tukey-hsd and games-howell agree on rejection decisions.
games-howell pvalues in rejection cases are very small, not close to decision boundary.

mask = tpw.cyl_labels != "Sweden"
cyl = tpw.cylinders[mask]
cyl_lbl = tpw.cyl_labels[mask]
mc5a = MultiComparison(cyl, cyl_lbl)
alpha = 0.05

resth5a = mc5a.tukeyhsd(alpha=alpha, use_var="equal")
print(resth5a.summary())
 Multiple Comparison of Means - Tukey HSD, FWER=0.05 
=====================================================
 group1  group2 meandiff p-adj   lower  upper  reject
-----------------------------------------------------
 France Germany   0.2222  0.995 -2.1819 2.6263  False
 France   Japan   0.1333 0.9987  -2.118 2.3846  False
 France     USA   2.2899 0.0229  0.2324 4.3474   True
Germany   Japan  -0.0889 0.9991 -1.7757 1.5979  False
Germany     USA   2.0676 0.0014  0.6498 3.4855   True
  Japan     USA   2.1565    0.0  1.0168 3.2963   True
-----------------------------------------------------

res5a = mc5a.tukeyhsd(alpha=alpha, use_var="unequal")
print(res5a.summary())
 Multiple Comparison of Means - Tukey HSD, FWER=0.05 
=====================================================
 group1  group2 meandiff p-adj   lower  upper  reject
-----------------------------------------------------
 France Germany   0.2222 0.7538 -0.4894 0.9339  False
 France   Japan   0.1333 0.7519 -0.2542 0.5209  False
 France     USA   2.2899   -0.0  1.7324 2.8473   True
Germany   Japan  -0.0889 0.9855 -0.8437 0.6659  False
Germany     USA   2.0676    0.0  1.2268 2.9084   True
  Japan     USA   2.1565    0.0  1.4993 2.8138   True
-----------------------------------------------------

res5a.pvalues
array([ 7.53841133e-01,  7.51887324e-01, -2.08721929e-14,  9.85524751e-01,
        1.96121327e-06,  4.61108929e-12])

strange implication of hsd
France has large simultaneous confidence interval even though within group variance is zero

image

@josef-pkt

josef-pkt commented Jan 23, 2025 •

Copy link
Copy Markdown
Member Author

new plot using unequal var
(only change is using q_crit_hsd in computing ci_simultaneous

looks much better, France has short interval
Scale looks very different from the hsd plot.
plots in my initial example look much more similar to each other between equal and unequal var.
Need to verify: in a larger sample with no heteroscedasticity, the plots of HSD and GH should look very similar if the confint computation for unequal var case is correct.

image

including Sweden
hsd looks very inappropriate given the huge differences in variances, Sweden and France with no within variance.
Although both should be pretty inaccurate because of the small sample sizes.

unequal var, games howell
image

equal var, tukey hsd
image

@josef-pkt

josef-pkt commented Jan 23, 2025 •

Copy link
Copy Markdown
Member Author

more fun

larger sample roughly based on cylinder data
US has largest mean and much larger variance than the others

The following illustrate the problem with the equal variance assumption in tukey-hsd

With unequal variance, the non-US pairs have relatively low variance of the diff, confidence intervals are relatively short.
With equal variance assumption the pooled variance is made much larger by the presence of the US. This also affects the variance of the mean difference between non-US countries which have now much larger intervals.

I changed the mean of Germany a bit, so now both US and Germany are different from the remaining three countries based on games-howell. However, Tukey-hsd is not able to separate out Germany.

image

image

opposite case:
equal group sizes and equal variance
tukey-hsd ci_simultaneous have the same widths across groups,
unequal var method has varying ci widths with in the example slightly smaller average width (but that might also be because of the random sample)

Oops,
The previous result here were based on a mistake in the setup of the simulate data. (now deleted)

The halfwidths agree pretty well between hsd and unequal variance, in larger sample.

So, the ci_simultaneous seem to be a correct approximation also in the case of the unequal var method.

nobs, groupnobs * n_factor
(500, array([100, 100, 100, 100, 100], dtype=int64))

res5a.halfwidths / resth5a.halfwidths - 1
array([ 0.05898685,  0.00162908,  0.05647239, -0.04288587, -0.07690865])

res5a.halfwidths.mean() / resth5a.halfwidths.mean() - 1
-0.000541239742071542

differences within group variance are sampling variation
e.g. in current simulated data (0.5228 is residual variance under homoscedasticity assumption)

mc5a.groupstats.groupvarwithin(), resth5a.variance
(array([0.58502005, 0.52481572, 0.58236651, 0.47850446, 0.44329414]),
 0.5228001751051871)

@josef-pkt

josef-pkt commented Jan 24, 2025 •

Copy link
Copy Markdown
Member Author

pandas summary frame
The pair labels were missing in the results class.
Also I don't remember which group should be listed first, #8458
mean1 - mean2 or mean2 - mean1 ?
meandiff = mean2 - mean1 (US has largest mean)
In two sample tests we use mean1 - mean2, group 2 is reference
(However that's irrelevant for the test which uses two-sided alternative, absolute value)
maybe relabel

example cylinders with small adjustment to avoid zero within group variance

self = res5
frame = pd.DataFrame({
    "group2": self.group2,
    "group1": self.group1, 
    "meandiff": self.meandiffs,
    "p-adj": self.pvalues,
    "lower": self.confint[:, 0],
    "upper": self.confint[:, 1],
    "reject": self.reject,
    })
print(frame)
    group2   group1  meandiff         p-adj     lower     upper  reject
0  Germany   France   0.209722  8.727806e-01 -0.830382  1.249826   False
1    Japan   France   0.120833  8.913930e-01 -0.410775  0.652442   False
2   Sweden   France   0.012500  9.846446e-01 -0.876530  0.901530   False
3      USA   France   2.277355  8.215650e-15  1.559136  2.995574    True
4    Japan  Germany  -0.088889  9.966522e-01 -1.124852  0.947074   False
5   Sweden  Germany  -0.197222  8.960428e-01 -1.235257  0.840812   False
6      USA  Germany   2.067633  3.209090e-06  0.958672  3.176594    True
7   Sweden    Japan  -0.108333  9.269487e-01 -0.643058  0.426392   False
8      USA    Japan   2.156522  7.702949e-12  1.312201  3.000842    True
9      USA   Sweden   2.264855  6.217249e-15  1.543130  2.986581    True

but summary table has numeric formatting that is faster to read

 Multiple Comparison of Means - Tukey HSD, FWER=0.01 
=====================================================
 group1  group2 meandiff p-adj   lower  upper  reject
-----------------------------------------------------
 France Germany   0.2097 0.8728 -0.8304 1.2498  False
 France   Japan   0.1208 0.8914 -0.4108 0.6524  False
 France  Sweden   0.0125 0.9846 -0.8765 0.9015  False
 France     USA   2.2774    0.0  1.5591 2.9956   True
Germany   Japan  -0.0889 0.9967 -1.1249 0.9471  False
Germany  Sweden  -0.1972  0.896 -1.2353 0.8408  False
Germany     USA   2.0676    0.0  0.9587 3.1766   True
  Japan  Sweden  -0.1083 0.9269 -0.6431 0.4264  False
  Japan     USA   2.1565    0.0  1.3122 3.0008   True
 Sweden     USA   2.2649    0.0  1.5431 2.9866   True
-----------------------------------------------------

@josef-pkt

josef-pkt commented Jan 24, 2025 •

Copy link
Copy Markdown
Member Author

group1 versus group2 again
#8458
I think I can switch group1, group2 labels without many backwards compatibility problems.
Currently the only results where labels are use are in the summary simple table. No other attribute uses the 1 vs 2 label.

But the order of pairs does not look so nice if the first group column varies faster than the second column.
(tril versus triu indices or direction of the diff)
(Having to pay attention to cosmetics is a pain, and now all computation use the less pretty way)
related: what does t_test_pairwise in regression results do

The labeling and diff direction will be more important with one-sided alternative as in trend tests.
So we need to fix it, and make sure that allpairstest or similar methods use a pattern consistent with 2indep hypothesis tests.

Aside
A summary table and frame for the group descriptive statistics would also be convenient for getting a quick overview.

I still don't know what to do in this PR.
adding summary_frame is either inconsistent with summary or not future proof, or breaks strict backwards compatibility if I switch labels also in summary.

update
I'm bailing out from this decision

for now I use groupT and groupC as names for treatment minus control.
refering to which group is considered as treatment in each pair
or more pythonic: group_t and group_c

@josef-pkt

Copy link
Copy Markdown
Member Author

about done here
I can squash original PR into 3 commits (removing separate lint commits and unit test in wrong module)

@josef-pkt

Copy link
Copy Markdown
Member Author

What's missing here or in next PR are unit tests directly for the varcorrection_xxx functions.

@josef-pkt

Copy link
Copy Markdown
Member Author

merging
I'm not closing the earlier games-howell PR yet #7332
It has some parts like unit test and connecting letters that can still be merged after this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants