Skip to content

Doc 08 mediation local fdr - #3441

Merged
josef-pkt merged 4 commits into
statsmodels:masterfrom
TomAugspurger:doc-08-mediation-local_fdr
Feb 6, 2017
Merged

josef-pkt merged 4 commits into
statsmodels:masterfrom
TomAugspurger:doc-08-mediation-local_fdr

Conversation

@TomAugspurger

Copy link
Copy Markdown
Contributor

Closes #3440

The description for Mediation came from Kirby's notebook here

Anything else to be added?

Comment thread docs/source/stats.rst
:toctree: generated/

local_fdr

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

NullDistribution needs to be also here AFAICS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

And fdrcorrection_twostage maybe? fdrcorrection is in the above toctree as fdrcorrection0, but I don't see two stage.

@josef-pkt

Copy link
Copy Markdown
Member

typo raise RunTimeError in stats/multitest.py line 594 (pydev is red when looking at the module)
RuntimeError

in stats/api.py needs two more
from .multitest import (multipletests, fdrcorrection, fdrcorrection_twostage, local_fdr, NullDistribution)

and I think at the end a new
from .mediation import Mediation

I didn't see any other missing items, but only spot checked a few more functions.

Added local_fdr, NullDistribution and Mediation to stats.api.py

Fixed a typo RuntimeError in multitest.py
Comment thread docs/source/stats.rst

local_fdr
fdrcorrection_twostage
NullDistribution

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

multipletests
fdrcorrection
fdrcorrection_twostage
local_fdr
NullDistribution

and delete
multipletests
fdrcorrection0
on lines 199, 200
those two sandbox imports were backwards compatibility imports and outdated

@josef-pkt

Copy link
Copy Markdown
Member

some of the multitest functions in the stats.rst didn't reflect an old refactoring

@TomAugspurger

Copy link
Copy Markdown
Contributor Author

We can do additional doc fixes after tagging 0.8.0 btw (but this should go in before because that RuntimeError warning.)

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 88.127% when pulling 8cf43ef on TomAugspurger:doc-08-mediation-local_fdr into d42afbd on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member

the api are also important in general because they determine the import path for users, although in this case both multitest and mediation look like public modules

@josef-pkt josef-pkt added this to the 0.8 milestone Feb 6, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.006%) to 88.133% when pulling 8cf43ef on TomAugspurger:doc-08-mediation-local_fdr into d42afbd on statsmodels:master.

@TomAugspurger

Copy link
Copy Markdown
Contributor Author

the api are also important in general because they determine the import path for users

Indeed. I think my last commit got all those.

@josef-pkt
josef-pkt merged commit 2e5dea3 into statsmodels:master Feb 6, 2017
TomAugspurger pushed a commit to TomAugspurger/statsmodels that referenced this pull request Feb 6, 2017
…on-local_fdr

MAINT/DOC 08 mediation local fdr
(cherry picked from commit 2e5dea3)
josef-pkt added a commit to josef-pkt/statsmodels that referenced this pull request Feb 6, 2017
…on-local_fdr

MAINT/DOC 08 mediation local fdr
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.

3 participants