evaluate_biogeme_expression_c: Evaluate one expression with native row-wise or aggregated...

View source: R/simulation.R

evaluate_biogeme_expression_cR Documentation

Evaluate one expression with native row-wise or aggregated JAX calculation

Description

This operation delegates to Biogeme's public get_value_c calculator. The expression is compiled before the native evaluator runs; R receives only a numeric vector or scalar.

Usage

evaluate_biogeme_expression_c(
  model,
  expression,
  beta,
  aggregation = FALSE,
  number_of_draws = 1000L,
  numerically_safe = FALSE,
  use_jit = TRUE
)

Arguments

model

A biogeme_model supplying the database.

expression

A Biogeme expression to evaluate.

beta

A biogeme_fit or named numeric parameter vector.

aggregation

Whether to return one native aggregated scalar instead of one value per observation.

number_of_draws

Positive number of native Monte Carlo draws.

numerically_safe

Whether to request native numerically safe formulas.

use_jit

Whether to use native JAX just-in-time compilation.

Value

A numeric vector, or one numeric scalar when aggregation = TRUE.


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