swissmetro_b01b_model: Build the segmented linear-utility Swissmetro specification...

View source: R/swissmetro.R

swissmetro_b01b_modelR Documentation

Build the segmented linear-utility Swissmetro specification from b01b

Description

This uses native LinearUtility and Segmentation during bridge compilation. The generated parameter names are ⁠asc_*_ref⁠ and ⁠asc_*_diff_*⁠, matching the Python example.

Usage

swissmetro_b01b_model(
  database,
  user_notes =
    paste0("Example of a logit model with three alternatives: Train, Car and ",
    "Swissmetro. Same as 01logit and introducing LinearUtility and ",
    "automatic segmentation of parameters.")
)

Arguments

database

A database prepared by swissmetro_data().

user_notes

Optional notes stored in the native estimation result.

Value

A biogeme_logit_model.


rbiogeme documentation built on Sept. 29, 2026, 5:09 p.m.