Skip to content

Doc work GEE, GMM, sphinx warnings - #1264

Merged
josef-pkt merged 4 commits into
statsmodels:masterfrom
josef-pkt:doc_work
Dec 24, 2013
Merged

josef-pkt merged 4 commits into
statsmodels:masterfrom
josef-pkt:doc_work

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

add GEE to docs
improve GMM docs, add new classes

fix some spinx warnings
var_plots truncated year string
seealso VAR documentation gave invalid option block warning

I upgraded sphinx to version 1.2, I'm still not building notebooks and didn't check those.

GEE still needs proof reading and example in gee.rst
GMM and sandwich covariances still need improvements

@josef-pkt

Copy link
Copy Markdown
Member Author

I would like to merge this soon, because I want to go back to sandwiches, docs and wrapper function, as far as I find time.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 011a445 on josef-pkt:doc_work into * on statsmodels:master*.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

fitted

@josef-pkt

Copy link
Copy Markdown
Member Author

Thanks Vincent, I will make the changes soon.

exog is not exogenous is really a bit awkward, Right now it's the most convenient interface (for writing the code).
I think we should be able to use formulas.
And for now I didn't like the distinction between dependent endogenous, explanatory endogenous, included exogenous and excluded exogenous, similar to ivregress, ivreg2, since the code so far doesn't need it, and GMM might never need it.

Is the current docstring roughly understandable? They still needs improvements in many places, but I'd like to work on doc examples next to get a better view on what's awkward to use.

@vincentarelbundock

Copy link
Copy Markdown

I think it sounds very good overall. I usually need to actually use something before I can tell for sure, but we can always improve them later on.

@josef-pkt

Copy link
Copy Markdown
Member Author

I have two gists for GMM that I need to update,
https://gist.github.com/josef-pkt/6895915
https://gist.github.com/josef-pkt/6890383

I used them as initial examples for the rewrite and unit tests.

What I already started to try out examples that compare models, like
GEE gaussian independence cluster is the same as OLS with cluster robust (up to small sample scale factors)
the same should work for Poisson and the other models
GEE gaussian exchangeable should be the same as SUR in balanced panel. (not tried yet)

I couldn't compare GEE with GMM because I don't have cluster robust standard errors yet in GMM.

@vincentarelbundock

Copy link
Copy Markdown

The notebooks look nice. I could try to clean those up for you if you'd like.

Do you think we could use data from Rdatasets instead so we don't have to package more datasets with SM?

Tip: You can put equations inside dollar signs to have them render as latex in the notebooks. No need to indent or pretend they are code.

@josef-pkt

Copy link
Copy Markdown
Member Author

I'd like to update the code in the notebooks first, so I can see what changes I made compared to the original version.

Datasets are still an open question, there are some in the unit tests of GEE and GMM, but we should get some official datasets also in statmodels, that we can use for the panel/cluster, Statas x... functions.

For other documentation we can use Rdatasets, and I also started to look at some textbook datasets like those of the two Wooldridge books. UCLA stats and Boston have worked out examples for those and I started some preliminary work to "replicate".

I definitely need lots of tips for notebooks since I still don't use them very often.

@josef-pkt josef-pkt mentioned this pull request Dec 23, 2013

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.

nobs is not available as attribute of results

@josef-pkt

Copy link
Copy Markdown
Member Author

made changes from Vincent's review, except naming convention (needs follow-up PR) and left TODO in gmm (needs followup code changes)

josef-pkt added a commit that referenced this pull request Dec 24, 2013
Doc work GEE, GMM, sphinx warnings
@josef-pkt
josef-pkt merged commit 8372093 into statsmodels:master Dec 24, 2013
@josef-pkt
josef-pkt deleted the doc_work branch July 10, 2014 02:20
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
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