check_derivatives: Check analytical derivatives against native finite...

View source: R/results.R

check_derivativesR Documentation

Check analytical derivatives against native finite differences

Description

This delegates to the public BIOGEME.check_derivatives() operation. The complete expression tree is compiled first; no R callback is evaluated by the derivative checker.

Usage

check_derivatives(
  model,
  model_name = "rbiogeme_model",
  controls = list(),
  control = NULL,
  verbose = FALSE
)

Arguments

model

A biogeme_model.

model_name

Native Biogeme model name.

controls

Named native Biogeme controls.

control

Optional biogeme_control() object; an alias for controls.

verbose

Whether native Biogeme should print the comparison.

Value

A list containing the native function value, analytical and finite difference gradients and Hessians, and their error vectors.


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