I am trying to estimate a nested multinomial logit model for transportation mode in R. I am using the following model.

TravelMode <- mlogit.data(TravelMode,choice="choice",shape="long",alt.var="mode",chid.var="individual")
TravelMode$avinc <- with(TravelMode,(mode=='air')*income)
nl.TM <- mlogit(choice ~ wait + gcost + avinc, TravelMode, reflevel = "car", 
                nests = list(fly = "air", ground = c("train", "bus", "car")),

Page 35 http://www2.uaem.mx/r-mirror/web/packages/mlogit/vignettes/mlogit.pdf#page=67&zoom=100,58,266

My Question: How do you indicate a variable is to be considered in the branches (Fly vs Ground) as opposed to the within the twigs (Air, Train, Bus, Car) in the mlogit function in R? As you can see from the specified model above, all the variables are dumped into the model without consideration as to when the variables matter in the decision tree.

enter image description here

  • $\begingroup$ But the estimates are group-specific, right? Not that the variables themselves are exclusive to certain groups. Or maybe I misunderstood your question. $\endgroup$ May 29 '20 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.