biogeme_generic_alt_specific_catalogs: Build synchronized generic/alternative-specific catalogs

View source: R/expressions.R

biogeme_generic_alt_specific_catalogsR Documentation

Build synchronized generic/alternative-specific catalogs

Description

This is the neutral R counterpart of native Biogeme's generic_alt_specific_catalogs(). Each returned element is a named list of catalogs, one for every alternative. The catalogs share one native controller with the exact specifications generic and altspec; when segmentations are supplied, the segmentation catalogs are nested below that controller in the same order as native Biogeme.

Usage

biogeme_generic_alt_specific_catalogs(
  generic_name,
  beta_parameters,
  alternatives,
  potential_segmentations = NULL,
  maximum_number = 5L
)

generic_alt_specific_catalogs(
  generic_name,
  beta_parameters,
  alternatives,
  potential_segmentations = NULL,
  maximum_number = 5L
)

Arguments

generic_name

Shared name used for the segmentation and generic/alternative-specific controllers.

beta_parameters

Non-empty list of biogeme_beta() expressions.

alternatives

At least two unique alternative names.

potential_segmentations

Optional non-empty list of segmentation objects.

maximum_number

Maximum number of potential segmentations in one option.

Value

A list of named lists of catalog expressions, one list per Beta.


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