Skip to content

reuse OLS object #43

@andportnoy

Description

@andportnoy
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    optimizationspeeds things up, but isn't crucial

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions