nested_endogenous_sampling_log_probability: Construct a native nested-logit log probability with...

View source: R/logit_model.R

nested_endogenous_sampling_log_probabilityR Documentation

Construct a native nested-logit log probability with endogenous-sampling correction

Description

Construct a native nested-logit log probability with endogenous-sampling correction

Usage

nested_endogenous_sampling_log_probability(
  utilities,
  availability,
  nests,
  correction,
  alternative,
  alternative_codes = NULL
)

Arguments

utilities

Named list of utility expressions.

availability

Optional named list of availability expressions.

nests

A nested_nests() specification.

correction

Named list of alternative-specific log correction terms.

alternative

Integer-valued alternative or a Biogeme choice expression.

alternative_codes

Optional named integer vector mapping utility names.

Value

A Biogeme expression compiled through native get_mev_for_nested and logmev_endogenous_sampling.


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