Biogeme: Python Library
4.6a
weightedloglikelihood.py
Go to the documentation of this file.
1
3
4
from
biogeme
import
*
5
6
12
def
weightedloglikelihood
(prob,choice,weight):
13
BIOGEME_OBJECT.WEIGHT = weight
14
loglikelihood = log(Elem(prob,choice))
15
return
loglikelihood
16
weightedloglikelihood.weightedloglikelihood
def weightedloglikelihood(prob, choice, weight)
Computes the log likelihood function for the WESML estimator.
Definition:
weightedloglikelihood.py:12
Copyright 2017
Michel Bierlaire