You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The temporary branch addit implements an additive term in the utility formulation. This additive term can help model coefficients kept at a fixed value as well as alternative specific fixed values. The additive term can be included in the fit and predict functions as follows:
model.fit(..., addit=-1*df['cost'], ...)
which would result in the following utility specification that simulates a coefficient of -1 for the cost coefficient kept fixed throughout the estimation (the portion in squared brackets is the addit term):
Dear @Olihno, Can you please test this feature? For this you need to uninstall your current version of xlogit and install the version in the temporary branch addit, as shown below.
The temporary branch
addit
implements an additive term in the utility formulation. This additive term can help model coefficients kept at a fixed value as well as alternative specific fixed values. The additive term can be included in thefit
andpredict
functions as follows:which would result in the following utility specification that simulates a coefficient of -1 for the cost coefficient kept fixed throughout the estimation (the portion in squared brackets is the
addit
term):Note that you can also add multiple terms by simple pre-computing the
addit
term.The text was updated successfully, but these errors were encountered: