## EXAMPLE FILES AND DATA

*This page contains a number of examples using Apollo and associated datafiles, along with the results produced in a text file by Apollo. These examples are for the latest full release version of Apollo. Detailed descriptions for the examples are given in the manual and in the academic paper. For examples for older versions or development versions, please see the code page
*

Model | Description | Data | |||||
---|---|---|---|---|---|---|---|

Family | Name | Script | Output | Name | Database | Dictionary | |

MNL | MNL_RP | .R | .txt | Simple MNL model on mode choice RP data | Mode choice | .csv | |

MNL_SP | .R | .txt | Simple MNL model on mode choice SP data | Mode choice | .csv | ||

MNL_SP_effects | .R | .txt | Simple MNL model on mode choice SP data using effects coding | Mode choice | .csv | ||

MNL_SP_WTP_space | .R | .txt | Simple MNL model on mode choice SP data in WTP space | Mode choice | .csv | ||

MNL_SP_covariates | .R | .txt | MNL model with socio-demographics on mode choice SP data | Mode choice | .csv | ||

MNL_RP_SP | .R | .txt | RP-SP model on mode choice data | Mode choice | .csv | ||

MNL_iterative_coding | .R | .txt | MNL model using iterative coding for alternatives and attributes | Synthetic | n/a | n/a | |

GEV | NL_two_levels | .R | .txt | Two-level NL model with socio-demographics on mode choice SP data | Mode choice | .csv | |

NL_two_levels_constraints_on_lambda | .R | .txt | Two-level NL model with socio-demographics on mode choice SP data, with constraint on lambda | Mode choice | .csv | ||

NL_three_levels | .R | .txt | Three-level NL model with socio-demographics on mode choice SP data | Mode choice | .csv | ||

NL_three_levels_constraints_on_lambdas | .R | .txt | Three-level NL model with socio-demographics on mode choice SP data, with constraints on lambdas | Mode choice | .csv | ||

CNL | .R | .txt | CNL model with socio-demographics on mode choice SP data | Mode choice | .csv | ||

CNL_constraint_on_alphas | .R | .txt | CNL model with socio-demographics on mode choice SP data, with constraint on alphas | Mode choice | .csv | ||

CNL_logistic_transform_for_alphas | .R | .txt | CNL model with socio-demographics on mode choice SP data, using logistic transform to ensure alphas meet constraints | Mode choice | .csv | ||

Non-RUM | RRM | .R | .txt | Simple RRM model on mode choice SP data | Mode choice | .csv | |

DFT_route_choice | .R | .txt | DFT model on Swiss route choice SP data | Swiss route choice | .csv | ||

DFT_mode_choice | .R | .txt | DFT model on mode choice SP data | Mode choice | .csv | ||

Ranking And rating |
EL | .R | .txt | Exploded logit model on drug choice data | Drug choice | .csv | |

BW_EL | .R | .txt | Best-worst logit model on drug choice data, using exploded logit function | Drug choice | .csv | ||

BW_joint_model | .R | .txt | Best-worst logit model on drug choice data (coded as two stages) | Drug choice | .csv | ||

BW_joint_model_diff_params | .R | .txt | Best-worst logit model on drug choice data, using different parameters for best and worse choices | Drug choices | .csv | ||

BW_simultaneous | .R | .txt | Best-worst model on drug choice data, simultaneous choice | Drug choices | .csv | ||

OL | .R | .txt | Ordered logit model fitted to attitudinal question in drug choice data | Drug choice | .csv | ||

OP | .R | .txt | Ordered probit model fitted to attitudinal question in drug choice data | Drug choice | .csv | ||

normal_density | .R | .txt | Normal density function fitted to attitudinal question in drug choice data | Drug choice | .csv | ||

Discrete- Continuous |
FMNL | .R | .txt | Fractional logit (FMNL) model on time use data | Time use | .csv | |

MDCEV_no_outside_good | .R | .txt | MDCEV model on time use data, alpha-gamma profile, no outside good and constants only in utilities | Time use | .csv | ||

MDCEV_with_outside_good | .R | .txt | MDCEV model on time use data, alpha-gamma profile with outside good and socio-demographics | Time use | .csv | ||

MDCNEV | .R | .txt | MDCNEV model on time use data, alpha-gamma profile with outside good and socio-demographics | Time use | .csv | ||

eMDC1 | .zip | .txt | Extended MDC with complementarity and substitution, with observed budget and socio-demographics | Time use | .csv | ||

eMDC2 | .zip | .txt | Extended MDC with complementarity and substitution, with unobserved budget and socio-demographics | Time use | .csv | ||

Mixture Models |
MMNL_preference_space | .R | .txt | Mixed logit model on Swiss route choice data, uncorrelated Lognormals in preference space | Swiss route choice | .csv | |

MMNL_preference_space_correlated | .R | .txt | Mixed logit model on Swiss route choice data, correlated Lognormals in utility space | Swiss route choice | .csv | ||

MMNL_wtp_space_inter_intra | .R | .txt | Mixed logit model on Swiss route choice data, WTP space with correlated and flexible distributions, inter and intra-individual heterogeneity | Swiss route choice | .csv | ||

ECL_preference_space_heteroskedasticity | .R | .txt | Error components logit model on Swiss route choice data, uncorrelated Lognormals in preference space, with heteroskedasticity term | Swiss route choice | .csv | ||

ECL_preference_space_panel_effect | .R | .txt | Error components logit model on Swiss route choice data, uncorrelated Lognormals in preference space, with panel effect term | Swiss route choice | .csv | ||

DM | .R | .txt | Simple DM model on Swiss route choice data | Swiss route choice | .csv | ||

LC_no_covariates | .R | .txt | Simple LC model on Swiss route choice data, no covariates in class allocation model | Swiss route choice | .csv | ||

LC_with_covariates | .R | .txt | LC model with covariates in class allocation model on Swiss route choice data | Swiss route choice | .csv | ||

LC_MMNL | .R | .txt | Latent class with continuous random parameters on Swiss route choice data | Swiss route choice | .csv | ||

Mixed_MDCEV | .R | .txt | Mixed MDCEV model on time use data, alpha-gamma profile, no outside good and random constants only in utilities | Time use | .csv | ||

Hybrid Choice |
Hybrid_with_continuous_measurement | .R | .txt | Hybrid choice model on drug choice data, using continuous measurement model for indicators | Drug choice | .csv | |

Hybrid_with_OL | .R | .txt | Hybrid choice model on drug choice data, using ordered measurement model for indicators | Drug choice | .csv | ||

Hybrid_with_OL_bugged_example | .R | n/a | Hybrid choice model on drug choice data, using ordered measurement model for indicators - with bug for debugging | Drug choice | .csv | ||

Hybrid_with_OL_and_MMNL | .R | .txt | Hybrid choice model on drug choice data, classical estimation | Drug choice | .csv | ||

Hybrid_LC_with_OL | .R | .txt | Hybrid latent class choice model on drug choice data, using ordered measurement model for indicators | Drug choice | .csv | ||

Alternative Estimation Approaches |
HB_MMNL | .R | .txt | HB model on mode choice SP data | Mode choice | .csv | |

Hybrid_with_OL_and_MMNL_bayesian | .R | .txt | Hybrid choice model on drug choice data, bayesian estimation | Drug choice | .csv | ||

EM_MMNL | .R | .txt | Mixed logit model on Swiss route choice data, correlated Lognormals in utility space, EM algorithm | Swiss route choice | .csv | ||

EM_LC_no_covariates | .R | .txt | LC model with class allocation model on Swiss route choice data, EM algorithm | Swiss route choice | .csv | ||

EM_LC_with_covariates | .R | .txt | LC model with class allocation model on Swiss route choice data, EM algorithm | Swiss route choice | .csv |