Skip to content

Commit

Permalink
Bugfix for ASC with Homoscedasticity
Browse files Browse the repository at this point in the history
  • Loading branch information
justanothergithubber committed Feb 21, 2019
1 parent c1806da commit e8f3dc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="mdmpy",
version="0.0.15.16",
version="0.0.15.17",
author="mdmpy Authors",
author_email="mdmpyatgithub@gmail.com",
description="A package that implements Marginal Distribution Models (MDMs)",
Expand Down
4 changes: 4 additions & 0 deletions src/mdmpy/mdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ def _lag_cons(model, i):
elif self._cdf == util.gumbel_cdf:
lhs_sum_expr = sum(1-aml.exp(-aml.exp(
sum(model.beta[l]*self._X[i][k][l] for l in model.L)-(model.lambda_[i]))) for k in model.K)
elif use_ASCs:
lhs_sum_expr = sum((1-self._cdf(model.lambda_[i]-sum(
model.beta[l]*self._X[i][k][l] for l in model.L)-
model.ASC[k])) for k in model.K)
# Default
else:
lhs_sum_expr = sum((1-self._cdf(model.lambda_[i]-sum(
Expand Down

0 comments on commit e8f3dc7

Please sign in to comment.