Skip to content

DOC: Improve documentation about glm #2959 - #3364

Merged
josef-pkt merged 5 commits into
statsmodels:masterfrom
lorentzenchr:glm_docu
Jan 30, 2017
Merged

josef-pkt merged 5 commits into
statsmodels:masterfrom
lorentzenchr:glm_docu

Conversation

@lorentzenchr

Copy link
Copy Markdown
Contributor

Update and continuation for PR #3353

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 88.026% when pulling b699074 on lorentzenchr:glm_docu into 22f2766 on statsmodels:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 88.026% when pulling 2eadbfc on lorentzenchr:glm_docu into 22f2766 on statsmodels:master.

Comment thread docs/source/glm.rst Outdated
* :math:`Y` and :math:`y_i` are coded as ``endog``, the variable one wants to
model
* :math:`x` is coded as ``exog``, the covariates alias explanatory variables
* :math:`\mu` is coded as ``mu``, the mean of :math:`Y`

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.

I would replace "mean" by "conditional expectation" (or also possible "conditional mean")
to avoid possible confusion with endog.mean()

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.

Hi. AFAIK, for a GLM, it is the unconditional expectation of Y - in contrast to mixed models. I can change mean into expectation in order to avoid confusion.

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.

It's conditional on the explanatory variables mu = E(y | x) or mu_i = E(y_i | x_i) for each observation i.

Unconditional sounds to me like a population average, i.e. marginal over x for the population or sampling distribution of x.

Now that I look at this more closely E(y | x) would also be better above in line 43.

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.

That's quite right.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 88.026% when pulling cb3f409 on lorentzenchr:glm_docu into 22f2766 on statsmodels:master.

@lorentzenchr lorentzenchr mentioned this pull request Jan 16, 2017
22 of 27 tasks
@josef-pkt
josef-pkt merged commit 17c1c08 into statsmodels:master Jan 30, 2017
@josef-pkt

Copy link
Copy Markdown
Member

merged @lorentzenchr Thank you

@TomAugspurger TomAugspurger mentioned this pull request Feb 1, 2017
4 of 28 tasks
@lorentzenchr
lorentzenchr deleted the glm_docu branch February 1, 2017 17:41
@TomAugspurger TomAugspurger mentioned this pull request Feb 2, 2017
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants