How can I specify multi-level MNL?
Posted: 02 Feb 2022, 04:16
Hi,
I'm wondering if there is any way to specify multi-level MNL? I guess it is related to the mixed logit model, but I'm not sure how to specify it.
For example, individuals live in different areas, and individuals living in the same area have the same random effect influencing the utility functions.
For individuals living in the first area, the utility function would be:
v[['car']] = (b_cost_car + random_carcost1) * cost_car + random_area1
v[['train']] = (b_cost_train+ random_traincost1) * cost_train + random_area1
For individuals living in the second area, the utility function would be:
v[['car']] = (b_cost_car + random_cost2) * cost_car + random_area2
v[['train']] = (b_cost_train+ random_traincost2) * cost_train + random_area2
Thank you!
I'm wondering if there is any way to specify multi-level MNL? I guess it is related to the mixed logit model, but I'm not sure how to specify it.
For example, individuals live in different areas, and individuals living in the same area have the same random effect influencing the utility functions.
For individuals living in the first area, the utility function would be:
v[['car']] = (b_cost_car + random_carcost1) * cost_car + random_area1
v[['train']] = (b_cost_train+ random_traincost1) * cost_train + random_area1
For individuals living in the second area, the utility function would be:
v[['car']] = (b_cost_car + random_cost2) * cost_car + random_area2
v[['train']] = (b_cost_train+ random_traincost2) * cost_train + random_area2
Thank you!