New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Logit model with cov_type = "cluster" #6287
Comments
API is different, those kwds need to be combined in a dict |
Use GLM with the Logit link, set cov_type and pass cov_kwargs (a dict). I
don't think Logit supports alternative covariance estimators.
… |
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/discrete/tests/test_sandwich_cov.py#L465 the latter unit test above shows that params, and bse in GLM-Binomial and Logit are the
|
Thanks for quick reply! Maybe we add this in the docs? about passing dictionary with the arguments as keys and also some example of keys ? |
That would be helpful. I read the docstring and then followed the fit function up a few levels and never detected that cov_type and cov_kwargs were important arguments that are used in Logit to change the covariance type. |
Also, I did not detect any checks made which could force a user to use those arguments. Because error was kinda not much informative. |
Describe the bug
This is more of a question and a possible bug. When I try to run:
My groups variable is just the column that I want my errors clustered on. in this case, for every unique ID group that I have. Instead, I get this error that there is no group keyword. Am I doing something wrong here?
Even more interesting it for some reason converges and then error pops up
sm version is 0.10.1
The text was updated successfully, but these errors were encountered: