Skip to content

ENH: proportions, stratified pairs of independent proportions 2x2xk #7184

Open

Description

@josef-pkt

specific issue for
#6380 (comment)

I was reading through parts of Tang 2020, and it looks good for implementing this.
test on a diff measure, RD, OR, RR for 2 independent binomial using k-sample of pairs

main focus in Tang is on score test for non-zero null for RD, OR or RR
difference in proportion for each stratum is estimated under the constraint as in the two-sample case, which we should be able to reuse.

this is a similar setup as we have in meta-analysis https://www.statsmodels.org/dev/generated/statsmodels.stats.meta_analysis.effectsize_2proportions.html
but might differ in that aggregation is more proportion specific

Tang, Yongqiang. 2020. “Score Confidence Intervals and Sample Sizes for Stratified Comparisons of Binomial Proportions.” Statistics in Medicine 39 (24): 3427–57. https://doi.org/10.1002/sim.8674.

related

Lipsitz et al test equal RD across strata with asymptotics number of strata goes to inf, strata size small

Lipsitz, Stuart R., Keith B. G. Dear, Nan M. Laird, and Geert Molenberghs. 1998. “Tests for Homogeneity of the Risk Difference When Data Are Sparse.” Biometrics 54 (1): 148–60. https://doi.org/10.2307/2534003.

Gart discusses homogeneity issues across k strata sample, e.g. what is constant, probs, RD, OR, RR. This is more background for Tang and similar. General issues with aggregating nonlinear statistics affects also other areas (e.g. log-binomial RR )
e.g. aggregating RD does not require that probs are the same across strata. (similar to using difference to remove individual, group specific intercept)

Gart, John J. 1992. “Pooling 2 Times 2 Tables: Asymptotic Moments of Estimators.” Journal of the Royal Statistical Society: Series B (Methodological) 54 (2): 531–39. https://doi.org/10.1111/j.2517-6161.1992.tb01894.x.

Related:
We could also have k samples of two paired proportions, i.e. k-sample stratified collection of McNemar pairs.
I haven't looked at that yet.

Activity

  1. josef-pkt commented on Dec 1, 2020

    @josef-pkt
    MemberAuthor

    Lipsitz et al has a good discussion about k large versus n_i large asymptotics

    However the best in their simulation is WLS with robust standard error, which according to them requires both large k and large n_i

    Their proposed large k test for homogeneity over reject still at K = 64 in their simulations and strongly overrejects for smaller K.
    Q, WLS over rejects with small (group/strata) sample sizes n_i.

    closely related to the q-test for homogeneity in meta-analysis.

    All 5 version of their homogeneity test look easy to implement, differ in weights and variance specification.

    Note, the best method in meta analysis also doesn't use model or single sample implied scale/variance (which is QWLS in Lipstitz et al), e.g. WLS empirical scale works better.
    Argument for simple weights is that they are more robust and less noisy than weights that depend on the individual small samples.
    Tang argues similarly that the methods in his article might need large group/strata sizes otherwise constraint MLE could be noisy.

    aside: what we have so far in meta-analysis is a stratified version of 2-sample comparison, i.e. the same as here.
    Emphasis in Lipsitz is on homogeneity test which is essentially the same problem as equal mean testing in oneway anova, just with a different effect size.

    For all sampling cases we should get the usual hypothesis tests, estimate of mean effect size or target statistic, confidence intervals, superiority/equivalence, ....

  2. josef-pkt commented on Apr 22, 2022

    @josef-pkt
    MemberAuthor

    mover confint
    #6498 (comment)

  3. josef-pkt commented on May 16, 2022

    @josef-pkt
    MemberAuthor

    see also #6585 #6639 for MH test and meta analysis

    AFAICS from abstract:
    Klingenberg 2014 has score test version of MH, more conservative than MH, MH can be liberal in some cases
    I didn't look at the other article.

    Klingenberg, Bernhard. 2014. “A New and Improved Confidence Interval for the Mantel–Haenszel Risk Difference.” Statistics in Medicine 33 (17): 2968–83. https://doi.org/10.1002/sim.6122.

    Böhning, Dankmar, Patarawan Sangnawakij, and Heinz Holling. 2022. “Confidence Interval Estimation for the Mantel–Haenszel Estimator of the Risk Ratio and Risk Difference in Rare Event Meta-Analysis with Emphasis on the Bootstrap.” Journal of Statistical Computation and Simulation 92 (6): 1267–91. https://doi.org/10.1080/00949655.2021.1991347.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions