check_monte_carlo_stability: Run native post-estimation Monte Carlo draw-stability...

View source: R/results.R

check_monte_carlo_stabilityR Documentation

Run native post-estimation Monte Carlo draw-stability diagnostics

Description

The model is compiled once and the supplied fixed estimate is passed to native BIOGEME.check_monte_carlo_stability(). Native Biogeme evaluates the objective and gradient at fresh draw designs and writes its YAML checkpoint and Markdown report.

Usage

check_monte_carlo_stability(
  model,
  fit,
  model_name = "rbiogeme_model",
  controls = list(),
  output_directory = NULL,
  basename = NULL,
  resume = TRUE,
  control = NULL
)

Arguments

model

A biogeme_model.

fit

A biogeme_fit obtained from the same model.

model_name

Native Biogeme model name.

controls

Named native Biogeme controls.

output_directory

Explicit directory for the native diagnostic files. It has no default: the operation refuses to write into the working directory when this argument is omitted.

basename

Optional native diagnostic filename prefix.

resume

Whether native Biogeme may resume a compatible checkpoint.

control

Optional biogeme_control() object; an alias for controls.

Value

An object of class biogeme_monte_carlo_diagnostic containing the native status, conclusion, recommendation, data, and output paths.


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