Functions

weightedloglikelihood Namespace Reference

Functions

def weightedloglikelihood
 Computes the loglikelihood function for the WESML estimator.

Function Documentation

def weightedloglikelihood::weightedloglikelihood (   prob,
  choice,
  weight 
)

Computes the loglikelihood function for the WESML estimator.

Parameters:
probdictionary were the keys are the identifiers of the alternatives in the choice set, and the values are expressions representing the chpice probabilities.
choiceexpression producing the id of the chosen alternative.
weightexpression producing the id of the chosen alternative.
 All Classes Namespaces Files Functions Variables