On 12 Aug 2022, at 16:57, Asindu, Marsy (ILRI) <M.As...@cgiar.org> wrote:
Dear Prof Michel,I am Marsy Asindu, from Kiel University. I am trying to run a hybrid choice model [B.7] on the biogeme website. However I get the following errors after setting up all my codes.[16:18:23] < General > Remove 1 unused variables from the database as only 70 are used.[16:18:24] < General > *** Initial values of the parameters are obtained from the file __Aug10_2022.iter[16:18:24] < Warning > Cannot read file __Aug10_2022.iter. Statement is ignored.My data set has 70 variables which I have carefully inspected and utilized in the model, but it keeps indicating that I have 71 variables with one unused. I checked through and realized that the programme generates its own variable labelled biogroups which only appears in the data frame but is nonexistent in my main excel dataset. I have tried to eliminate it using the commandDeleteList=['_biogroups']df = df.drop(DeleteList, axis=1)print(df)But the variable is still persistent. Kindly advise on how such a constraint can be handled when working for biogeme.Many thanks in advance for your kind support and looking forward to your response.Best regards,
W = CLASS_CTE + CLASS_INC * INCOME
PROB_class0 = models.logit({0: W, 1: 0}, None, 0)
PROB_class1 = models.logit({0: W, 1: 0}, None, 1)
In my situation with three socio-ecomic variables (income, distance and age), I am kindly inquiring which of the following specifications (A or B) below would be the most appropriate for the class membership model. And incase both are incorrect, how best can one specify the membership class when dealing with two or more socio-economic variables.
Approach A
C = CLASS_CTE + CLASS_INC * income
PROB_class0 = models.logit({0: C, 1: 0}, None, 0)
PROB_class1 = models.logit({0: C, 1: 0}, None, 1)
D = CLASS_CTE + CLASS_INC * distance
PROB_class0 = models.logit({0: D, 1: 0}, None, 0)
PROB_class1 = models.logit({0: D, 1: 0}, None, 1)
E = CLASS_CTE + CLASS_INC * age
PROB_class0 = models.logit({0: E, 1: 0}, None, 0)
PROB_class1 = models.logit({0: E, 1: 0}, None, 1)
Approach B
W = CLASS_CTE + CLASS_INC * income * distance * age
PROB_class0 = models.logit({0: W, 1: 0}, None, 0)
PROB_class1 = models.logit({0: W, 1: 0}, None, 1)
Many thanks in advance for your kind consideration.
Regards,
W = CLASS_CTE + CLASS_INC * income + CLASS_DIST * distance + CLASS_AGE * age
PROB_class0 = models.logit({0: W, 1: 0}, None, 0)
PROB_class1 = models.logit({0: W, 1: 0}, None, 1)
--
You received this message because you are subscribed to the Google Groups "Biogeme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/0627582f-6a99-4e53-96d9-3a6ebf09efb3n%40googlegroups.com.