You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
specific issue for adding a scale parameter to GLM and discrete models.
related #1095 QMLE #1158 summary issue for robust covariances
IIRC, there are more comments and references spread over different issues
reference among several others
Cameron Trivedi Microeconometrics section 5.7.4 on Generalized Linear Models
explicitly says
common estimate for scale factor is sum of squared pearson residuals divided by (nobs - k_vars) (i.e. divided by df_resid)
I got slightly strange numbers when I tried this a while ago, and find the equivalent result in Stata. (maybe because I looked at Stata's poisson and not glm)
Note: our GLM has a hidden, untested (?) option to choose the calculation for the scale parameter.
I added an option for generic rescaling of the covariance in the generic version, scaling_factor
This could be used to rescale the nonrobust covariance by the scale in GLM and discrete Poisson.
However, this is currently not possible because 'nonrobust' doesn't go through the generic sandwich functionget_robustcov_results`.
e.g. to compare with GEE cov_naive which is the scaled traditional covariance matrix, which can be over or under dispersed in Poisson.
scale option is available. I did some examples, but AFAIR we don't have unit test for quasi-xxx
I don't find any good issue with example right now. (should be in some notebook of mine)
Activity
josef-pkt commentedon Jun 16, 2014
Wooldridge cross-section equation (13.91) p. 513 also uses "Pearson dispersion parameter"
josef-pkt commentedon Aug 23, 2014
implementation detail:
I added an option for generic rescaling of the covariance in the generic version,
scaling_factorThis could be used to rescale the nonrobust covariance by the scale in GLM and discrete Poisson.
However, this is currently not possible because
'nonrobust' doesn't go through the generic sandwich functionget_robustcov_results`.e.g. to compare with GEE cov_naive which is the scaled traditional covariance matrix, which can be over or under dispersed in Poisson.
josef-pkt commentedon May 17, 2020
scale option is available. I did some examples, but AFAIR we don't have unit test for quasi-xxx
I don't find any good issue with example right now. (should be in some notebook of mine)
more recent issue #4942, #5277, ...
https://stackoverflow.com/questions/61856088/python-statsmodels-equivalent-to-r-quasibinomial-glm