Functions | |
def | weightedloglikelihood |
Computes the loglikelihood function for the WESML estimator. |
def weightedloglikelihood::weightedloglikelihood | ( | prob, | |
choice, | |||
weight | |||
) |
Computes the loglikelihood function for the WESML estimator.
prob | dictionary were the keys are the identifiers of the alternatives in the choice set, and the values are expressions representing the chpice probabilities. |
choice | expression producing the id of the chosen alternative. |
weight | expression producing the id of the chosen alternative. |