canada_mlogit_y | R Documentation |
Replication data from the mlogit
package, which is available
by ModeCanada
. This data shows the mode of transportation 14,000+
respondents in Canada took.
canada_mlogit_y
canada_mlogit_w
canada_mlogit_m
An object of class numeric
of length 4324.
An object of class integer
of length 4324.
An object of class matrix
(inherits from array
) with 4324 rows and 4 columns.
canada_mlogit_y
is a length 4,324 vector of the outcome.
It is coded numerically with the reference category at 0. 0 is "train",
1 is "air", 2 is "bus", and 3 is "car".
canada_mlogit_m
is a 4,324 - by - 4 matrix indicating the availability
of the choice on the menu. Cell (i, l) is 1 is individual i had option l
available on the menu, 0 otherwise. Because this is a R matrix, the columns are
1-based.
canada_mlogit_w
is a length 4,324 vector of the weights, which are
are necessary in a clustering task. These are arbitrarily the individual-specific
variable "dist" in the ModeCanada dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.