generate_default_availabilities {mixl} | R Documentation |
Generate a ones-matrix of availabilities
Description
Generate a ones-matrix of availabilities
Usage
generate_default_availabilities(data, num_utility_functions)
Arguments
data |
The dataset used in the model |
num_utility_functions |
the number of alternatives in the model |
Value
Ones-matrix of availabilities for alternatives and the number of choice observations
Examples
data("Train", package="mlogit")
Train$ID <- Train$id
Train$CHOICE <- as.numeric(Train$choice)
generate_default_availabilities(Train, 5)
[Package mixl version 1.3.4 Index]