-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[BUG] statsmodel.formula.api -- order of terms impacts fit_regularized results #7838
Comments
snacamavtyn
changed the title
statsmodel.formula.api -- order of terms impacts fit_regularized results
[BUG] statsmodel.formula.api -- order of terms impacts fit_regularized results
Nov 3, 2021
Your |
FWIW I also see the same when I call |
we need convergence information e.g. increasing maxiter
|
Ah! Fixed the typo in the test case
Output
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Example code shows that the params are different based strictly on the order in which the polynomial terms in the model are declared in the formula. Problem impacts only fit_regularized() and not fit()
Code Sample, a copy-pastable example if possible
Output of the script
Output of
import statsmodels.api as sm; sm.show_versions()
Problem is reproducible under Linux as well
The text was updated successfully, but these errors were encountered: