Skip to content

Update proportion.py - #7777

Merged
josef-pkt merged 1 commit into
statsmodels:mainfrom
Daedalos:patch-1
Nov 26, 2022
Merged

josef-pkt merged 1 commit into
statsmodels:mainfrom
Daedalos:patch-1

Conversation

@Daedalos

@Daedalos Daedalos commented Oct 1, 2021 •

Copy link
Copy Markdown
Contributor

Remove docstring for arguments that don't exist in proportion_chisquare_allpairs and proportion_chisquare_pairscontrol

closes #7776

Remove docstring for arguments that don't exist in function.
@josef-pkt

Copy link
Copy Markdown
Member

looks good, thank you

Now that I look at it again, the test against a control has a value argument that raises NotImplementedError.
value takes the same place as the docstring pro, but for the comparison in 2-sample tests.

I'm sometimes adding arguments in a function for "future compatiblity", when I'm planning to add a feature, and I don't want the signature to change when the feature arrives.

prop is wrong, this PR removes this error in the docstring, but the docstring is still incomplete.

I guess what I wanted to add here is superiority or inferiority testing with a margin.
e.g.
Null : all treatments are at most x better than control
H1: there exists at least one treatment that is more than x better than control

and multiple testing tries to identify which one is, or which ones are, better than control.

@josef-pkt

Copy link
Copy Markdown
Member

I made the comment in the wrong place, issue instead of here

#7776 (comment)

@josef-pkt josef-pkt added this to the 0.14 milestone Mar 27, 2022
@josef-pkt josef-pkt mentioned this pull request Jun 22, 2022
16 of 20 tasks
@josef-pkt

josef-pkt commented Nov 26, 2022 •

Copy link
Copy Markdown
Member

Did I fix this already?
Why does it not show a merge conflict?

not fixed yet, chisquare does not have it, but the pairs functions do

@josef-pkt
josef-pkt merged commit eebf942 into statsmodels:main Nov 26, 2022
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.

proportion_chisquare_*pairs* functions mistaken docstring

2 participants