Functions | |
def | nullLoglikelihood |
Computes the null loglikelihood from the sample and ask Biogeme to include it in the output file. | |
def | choiceStatistics |
Computes the number of times each alternative is chosen in the data set and ask Biogeme to include it in the output file. | |
def | availabilityStatistics |
Computes the number of times each alternative is declared available in the data set and ask Biogeme to include it in the output file. | |
def | cteLoglikelihood |
Computes the constant loglikelihood from the sample and ask Biogeme to include it in the output file. |
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. |
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. |
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.
availability | A dictionary mapping each alternative ID with its availability condition. |
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. |
def statistics::nullLoglikelihood | ( | availability, | |
iterator | |||
) |
Computes the null loglikelihood 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. |