bayesian_posterior_mean_by_observation: Retrieve native posterior means by observation

View source: R/simulation.R

bayesian_posterior_mean_by_observationR Documentation

Retrieve native posterior means by observation

Description

Loads the NetCDF result with Biogeme's public BayesianResults API and delegates the observation-level posterior mean calculation to native Biogeme. No posterior-draw or ArviZ object is exposed to R.

Usage

bayesian_posterior_mean_by_observation(bayesian_results, variable_name,
  control = NULL)

Arguments

bayesian_results

A biogeme_bayesian_fit object or one native Bayesian NetCDF result path.

variable_name

Name of a stored posterior variable with one observation dimension in addition to chain and draw.

control

Optional native Biogeme control list. Likelihood, WAIC, and LOO calculations are disabled by default.

Value

A data frame indexed by the native observation coordinate, with one column named after variable_name.


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