ModeCanada {mlogit} | R Documentation |
a cross-section
number of observations : 3880
observation : individuals
data(ModeCanada)
A dataframe containing :
the individual index
the alternative, one of train, car, bus and air,
one if the mode is chosen, zero otherwise,
monetary cost,
in vehicule time,
out vehicule time,
frequency,
income,
urban,
the number of alternatives available.
Bhat, Chandra R. (1995) “A heteroscedastic extreme value model of intercity travel mode choice”, Transportation Research Part B, 29(6), 471-483.
Koppelman Franck S. and Chieh-Hua Wen (2001) “The paired combinatorial logit model:properties, estimation and application”, Transportation Research Part B, 75-89.
Wen, Chieh-Hua and Franck S. Koppelman (2001) “The generalized nested logit model”, Transportation Research Part B, 627-641.
data("ModeCanada", package = "mlogit") bususers <- with(ModeCanada, case[choice == 1 & alt == "bus"]) ModeCanada <- subset(ModeCanada, !case %in% bususers) ModeCanada <- subset(ModeCanada, nchoice == 4) ModeCanada <- subset(ModeCanada, alt != "bus") ModeCanada$alt <- ModeCanada$alt[drop = TRUE] KoppWen00 <- mlogit.data(ModeCanada, shape='long', chid.var = 'case', alt.var = 'alt', choice='choice', drop.index=TRUE) pcl <- mlogit(choice~freq+cost+ivt+ovt, KoppWen00, reflevel='car', nests='pcl', constPar=c('iv.train.air'))