Skip to content
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

reuse OLS object #43

Open
andportnoy opened this issue Oct 26, 2018 · 0 comments
Open

reuse OLS object #43

andportnoy opened this issue Oct 26, 2018 · 0 comments
Labels
optimization speeds things up, but isn't crucial

Comments

@andportnoy
Copy link
Collaborator

model = smf.ols(formula, one_y)
model.fit()

for y in ys:
    model.wendog = y
    results = model.fit()

Asked for advice on the mailing list: https://groups.google.com/forum/#!topic/pystatsmodels/ms1a9IftQQk

@andportnoy andportnoy added the enhancement New feature or request label Dec 6, 2018
@andportnoy andportnoy added optimization speeds things up, but isn't crucial and removed enhancement New feature or request labels Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization speeds things up, but isn't crucial
Projects
None yet
Development

No branches or pull requests

1 participant