| swissmetro_data | R Documentation |
The transformation is deliberately expressed as native database
operations. It removes rows with PURPOSE other than 1 or 3 and rows with
CHOICE == 0, then defines the cost, availability, and /100 scaled
variables used by plot_b01a_logit.py. Row order and original row IDs are
retained. Set panel = TRUE to declare ID as the panel identifier.
swissmetro_data(
data,
name = "swissmetro",
panel = FALSE,
filter_purpose = TRUE
)
prepare_swissmetro(
data,
name = "swissmetro",
panel = FALSE,
filter_purpose = TRUE
)
data |
Numeric Swissmetro data frame. |
name |
Database name. |
panel |
Whether to declare the |
filter_purpose |
Whether to retain only observations with |
A biogeme_database specification.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.