Skip to content

Misc07 cleanup multipletesting and proportions - #784

Merged
josef-pkt merged 57 commits into
statsmodels:masterfrom
josef-pkt:misc07-cleanup
May 24, 2013
Merged

josef-pkt merged 57 commits into
statsmodels:masterfrom
josef-pkt:misc07-cleanup

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

first part: some cleanup of multipletesting,
see also http://jpktd.blogspot.ca/2013/04/multiple-testing-p-value-corrections-in.html
closes #763
closes #764
closes #766

Note: includes several backwards incompatible renames in weightstats

second part: statistical test for proportions and normal based tests

some functions still miss unit tests :

  • (almost full coverage in weightstats (97%) and proportions (92%), one method and a few lines left untested)
  • not all features tested, latest statistical tests don't have shape/2d tests

currently all written as individual functions :

  • maybe add a class to collect methods, add plotting ?
  • and more results classes
  • the allpairs tests return a results instance, all others just numbers

some functions are still missing (ztest_prop, with more options than generic ztest), mostly done, I think

adding ztest and ztost to weightstats is incomplete (not attached as methods) DONE

ddof again:

  • I need them for proportion and correlation for the z-based tests see b46ed52
  • currently I added them to the standalone functions but not the methods

Comment thread statsmodels/stats/multitest.py Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this goes the wrong way, should be multitest_alias[a] = m[0]

@josef-pkt

Copy link
Copy Markdown
Member Author

almost done here

proportion has essentially full coverage (but maybe not all options or use cases)

left to do:
integrating normal based tests, ztests, with weightstats classes is still missing,
and incomplete unittest coverage of ztest extra functions in weightstats.

@josef-pkt

Copy link
Copy Markdown
Member Author

The last commit cd69578 added some new stuff that are not yet unit tested. Most of it is copy paste to finish up some loose ends and add generic versions, for example add the methods for ztest and ztost to weightstats.

I wrote those changes some time ago, and I'm not sure what the status is.
(I started tests for correlation, marginal homogeneity in contingency tables, and one sample outliers tests, but put yet in a new, not yet pushed, branch)

@josef-pkt

Copy link
Copy Markdown
Member Author

Pretty much done here. The docstrings should get another review.

I did some interface consistency changes.

Some options still vary across functions and methods, but I leave that for the next round, which will also bring in tests for correlation, which are again based on normal distribution (ztest) after transforming the test statistic.
I opened issue #847 for that.

(Still bugging: it still uses confint_xxx instead of tconfint_xxx in parallel to zconfint_xxx )

@josef-pkt

Copy link
Copy Markdown
Member Author

missing : add new functions and methods to api and sphinx docs

@josef-pkt

Copy link
Copy Markdown
Member Author

I'm going to rebase, force push and then merge.

josef-pkt added 22 commits May 23, 2013 22:22
     add 'fdr_twostage' option to multipletests, some doc improvement
josef-pkt added 24 commits May 23, 2013 22:22
@josef-pkt

Copy link
Copy Markdown
Member Author

travisCI python 2 fails again with python-dateutil, python 3.2 passes

merging

josef-pkt added a commit that referenced this pull request May 24, 2013
Misc07 cleanup : multipletesting, proportions, weightstats
@josef-pkt
josef-pkt merged commit a74bdbf into statsmodels:master May 24, 2013
@josef-pkt
josef-pkt deleted the misc07-cleanup branch May 24, 2013 03:14
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
Misc07 cleanup : multipletesting, proportions, weightstats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant