> Yet another comment - I hope I am not becoming a pain in the neck ;)
I think it's very useful what you are doing.
And, if you find pieces that are missing, then you could open issues
for them, so we know which gaps need filling.
>
> When I calculate model parameters with OLS and with GLM, I get the same
> parameters - but I obtain different values for the confidence intervals
> (CIs)!
> When I do the CIs by hand, the values I get are equivalent to those reported
> by OLS.
> My question: I think that the CIs should be the same - should they not?
> Also: after fitting an OLS model, how can I obtain the standard errors
> displayed by "model.summary()"?
bse, tvalues and conf_int() should give you the same numbers as the summary
they should be basic attributes across models.
tvalues could be zvalues if we use normal distribution, but we decided
to use the same name for both for consistency.
for OLS (and example I had open)
>>> result.bse
array([ 0.14488718, 0.16562277, 0.31758337])
>>> result.tvalues
array([ 5.74811132, 12.32127366, 5.88324762])
>>> result.conf_int()
I think it's a mistake that it shows t and P>|t| instead of z and P>|z|
We changed whether we use t or normal distribution in the different
models a while ago after some discussion.
I don't know if there is a way for the user to switch.
I need to check this.
Josef