--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/180a449d-646e-404e-8066-9fc05edad29bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/CAMMTP%2BD_tCv%2BfamLrP4OpvL7rJK2H%3DgUh%3D3ZZqe-vyoVkO4T8w%40mail.gmail.com.
Hello,I have ran a tweedie, multi-variate GLM three times. One without weights and offsets, one with weights only and one with offsets only. The results are the exact same everytime.Is that normal?It's not normal in the general case.Any non-zero offset should at least change the constant in paramswhich weights? var_weights or freq_weights?If they are non-constant, then params should change.Prediction might not change much, e.g. if the model adjusts to compensate for offset.
I just used "weights". But it should probably be freq_weights.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/CAJhRQOBomv4Lns-mQ%2BLHQHXVbqVxJJmjnikq4r%3DzpLS1xzfEVg%40mail.gmail.com.
Is using the offset argument the same as adding the offset column into the formula? So instead of:target ~ var1 * var2 * var3I do:target~ var1 * var2 * var3 + offset_factor
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/e5f0336e-57a4-4e64-92c2-2c5f4ce3b0c3n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/CAMMTP%2BDfSKUsFAqeUA9e427WT0U21MFpAXHpfnCQoBCp3OQw-Q%40mail.gmail.com.
Ok. I'm getting the exact same coefficients when using or taking out the offset. The offset is derived from multiple coefficients multiplied together from a previous model. I'm not sure why it's not changing the resulting parameters.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/CAJhRQOC52Vw5fVXxP%3DK2AVMfPn9Ktcw1q550zta11_16dpkuoQ%40mail.gmail.com.
On Tue, Sep 21, 2021 at 3:28 PM Jordan Howell <jordan....@gmail.com> wrote:Ok. I'm getting the exact same coefficients when using or taking out the offset. The offset is derived from multiple coefficients multiplied together from a previous model. I'm not sure why it's not changing the resulting parameters.Is it close to perfectly collinear?e.g. run OLS(offset_factor, exog_in_glm)and see whether Rsquared is close to 1 and residual scale is close to zeroClose to perfect collinearity could be a reason that it doesn't have any effect.The algorithm will find an "arbitrary" solution with perfect collinearity, where "arbitrary" is defined by `pinv`
On Tue, Sep 21, 2021 at 3:02 PM Jordan Howell <jordan....@gmail.com> wrote:I just used "weights". But it should probably be freq_weights.weights will just be swallowed by the **kwargs, and not do anything.We still don't have a proper check in the models to which kwargs are allowed.