Hi everybody,
I have a survey dataset where individuals(id) have reported their origin/destination, chosen mode (1= car, 2= bus, 3= train) and age:
id origin destination mode age
1 1 3 1 57
2 2 3 2 65
3 4 1 3 25
I have also merged additional information such as travel time with different modes into this survey:
id origin destination mode age tt_1 tt_2 tt_3
1 1 3 1 57 60 50 70
2 2 3 2 65 30 20 60
3 4 1 3 25 50 80 90
now I want to use Biogeme for estimating the multinomial logit model with the following utility functions:
V1 = (ASC_CAR + B_TIME * tt + B_age* age)
V2 = (ASC_BUS+ B_TIME *
tt +
B_age* age)
V3 = (ASC_TRAIN + B_TIME *
tt +
B_age* age)
Should I convert this wide format dataset into long format before starting the estimation?
id origin destination mode age tt alt
1 1 3 1 57 60 1
1 1 3 1 57 50 2
1 1 3 1 57 70 3
2 2 3 2 65 30 1
2 2 3 2 65 20 2
2 2 3 2 65 60 3
...
Thank you for your guidance!