canada_mlogit_y: varying choice set mlogit replication

canada_mlogit_yR Documentation

varying choice set mlogit replication

Description

Replication data from the mlogit package, which is available by ModeCanada. This data shows the mode of transportation 14,000+ respondents in Canada took.

Usage

canada_mlogit_y

canada_mlogit_w

canada_mlogit_m

Format

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.

Details

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.


kuriwaki/clusterCVR documentation built on July 31, 2024, 8:28 p.m.