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

Skip_hessian True now works in ConditionalLogit #9181

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion statsmodels/discrete/conditional_models.py
Expand Up @@ -121,8 +121,13 @@
full_output=full_output,
disp=disp,
skip_hessian=skip_hessian)

if skip_hessian:
cov_params = None

Check warning on line 126 in statsmodels/discrete/conditional_models.py

View check run for this annotation

Codecov / codecov/patch

statsmodels/discrete/conditional_models.py#L126

Added line #L126 was not covered by tests
else:
cov_params = rslt.cov_params()

crslt = ConditionalResults(self, rslt.params, rslt.cov_params(), 1)
crslt = ConditionalResults(self, rslt.params, cov_params, 1)
crslt.method = method
crslt.nobs = self.nobs
crslt.n_groups = self._n_groups
Expand Down