Repository navigation
DOC: Improve documentation about glm #2959 - #3364
Conversation
| * :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` |
There was a problem hiding this comment.
I would replace "mean" by "conditional expectation" (or also possible "conditional mean")
to avoid possible confusion with endog.mean()
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
That's quite right.
|
merged @lorentzenchr Thank you |
Update and continuation for PR #3353