Skip to content

ENH: add option for null_var or null_prop to samplesize_proportions_2indep_onetail  #8675

Open

Activity

  1. added this to the 0.14 milestone on Feb 15, 2023
  2. josef-pkt commented on Feb 16, 2023

    @josef-pkt
    MemberAuthor

    "pooled" is actually the estimated prob under the null of equal proportion if the true DGP is the one specified by the alternative.

    using prop2 or prop1 for var_null might not correspond to any hypothesis test method, unless the hypothesis specified a fixed level/value of prop2 under the null, e.g. H0: prob1 = prob2 = 0.05.

    The generalization of "pooled" if there is a nonzero null diff (null margin as in noninferiority testing) would be the estimate under the null hypothesis restriction, eg. p2 + p1 - value = 0. We would need a more generic name for the option.
    This might differ under wald versus score test.

    We need some MonteCarlo studies if we want to match up the power and sample size computation directly with the hypothesis test method.

    Aside:
    "pooled" uses the props specified by the alternative. Those are expected values under the alternative.
    In the actual hypothesis test we use the sample estimates so var_null is a random variable. I don't think using the expected variance is "exact" (or equal to the one we would get with simulations) because of the nonlinearities.
    PASS has some "averaged power" but, AFAIR, that refers to a distribution of props under the alternative (and not sampling variation of variance estimate, although using random props also changes the implied var.)

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions