ModeCanada: Mode Choice for the Montreal-Toronto Corridor

Description Format Source References Examples

Description

A sample of 3880 travellers for the Montreal-Toronto corridor

Format

A dataframe containing

Source

kindly provided by S. Koppelman

References

\insertRef

BHAT:95mlogit

\insertRef

KOPP:WEN:00mlogit

\insertRef

WEN:KOPP:01mlogit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data("ModeCanada", package = "mlogit")
bususers <- with(ModeCanada, case[choice == 1 & alt == "bus"])
ModeCanada <- subset(ModeCanada, ! case %in% bususers)
ModeCanada <- subset(ModeCanada, noalt == 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'))

mlogit documentation built on Oct. 23, 2020, 5:29 p.m.