estimate_sampled_alternatives: Estimate a native sampled-alternative model

View source: R/sampling.R

estimate_sampled_alternativesR Documentation

Estimate a native sampled-alternative model

Description

Regenerates the sampled choice sets with recycling disabled, compiles the sampled likelihood once in native Biogeme, and delegates estimation to the native engine. No Python source is generated by the R interface.

Usage

estimate_sampled_alternatives(
  model,
  model_name = "rbiogeme_sampled",
  controls = list(),
  starting_values = NULL,
  run_bootstrap = FALSE,
  control = NULL
)

Arguments

model

A [sampled_alternatives_model()] object.

model_name

Native Biogeme model name.

controls

Named native Biogeme controls.

starting_values

Optional named finite numeric vector.

run_bootstrap

Whether to run native bootstrap re-estimation.

control

Optional [biogeme_control()] alias for controls.

Value

A biogeme_fit object with native sampling-context and sampled-file metadata attached.

See Also

sampled_alternatives_model()


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