|
Biogeme: Python Library
2.5
|
Functions | |
| def | statistics.nullLoglikelihood (availability, iterator) |
| Computes the null log likelihood from the sample and ask Biogeme to include it in the output file. More... | |
| def | statistics.choiceStatistics (choiceSet, choice, iterator) |
| Computes the number of times each alternative is chosen in the data set and ask Biogeme to include it in the output file. More... | |
| def | statistics.availabilityStatistics (availability, iterator) |
| Computes the number of times each alternative is declared available in the data set and ask Biogeme to include it in the output file. More... | |
| def | statistics.cteLoglikelihood (choiceSet, choice, iterator) |
| Computes the constant loglikelihood from the sample and ask Biogeme to include it in the output file. More... | |
| def statistics.availabilityStatistics | ( | availability, | |
| iterator | |||
| ) |
Computes the number of times each alternative is declared available in the data set and ask Biogeme to include it in the output file.
| availability | Dictionary containing for each alternative the expression for its availability. |
| iterator | An iterator on the data file. |
Definition at line 44 of file statistics.py.
| def statistics.choiceStatistics | ( | choiceSet, | |
| choice, | |||
| iterator | |||
| ) |
Computes the number of times each alternative is chosen in the data set and ask Biogeme to include it in the output file.
| choiceSet | list containing the alternatives for which statistics must be computed. |
| choice | expression producing the id of the chosen alternative. |
| iterator | An iterator on the data file. |
Definition at line 30 of file statistics.py.
| def statistics.cteLoglikelihood | ( | choiceSet, | |
| choice, | |||
| iterator | |||
| ) |
Computes the constant loglikelihood from the sample and ask Biogeme to include it in the output file.
It assumes that the full choice set is available for each observation.
| choiceSet | list containing the alternatives in the choice set. |
| choice | expression producing the id of the chosen alternative. |
| iterator | An iterator on the data file. |
is the number of times alternative
is chosen, then it is given by
is the total number of observations. Definition at line 60 of file statistics.py.
| def statistics.nullLoglikelihood | ( | availability, | |
| iterator | |||
| ) |
Computes the null log likelihood from the sample and ask Biogeme to include it in the output file.
| availability | A dictionary mapping each alternative ID with its availability condition. |
| iterator | An iterator on the data file. |
is given by is
, where
is the number of available alternatives, i.e.
Definition at line 13 of file statistics.py.