| bayesian_estimate | R Documentation |
The complete R expression tree is compiled once, then native Biogeme builds and samples the PyMC model. The returned R object contains the native posterior summary and the paths of any generated NetCDF/YAML/HTML files; posterior draws are not represented as manually managed Python objects.
bayesian_estimate(
model,
model_name = "rbiogeme_model",
controls = list(),
starting_values = NULL,
control = NULL
)
model |
A |
model_name |
Native Biogeme model name. |
controls |
Named native Biogeme controls. |
starting_values |
Optional named numeric vector of starting values. |
control |
Optional |
NetCDF and YAML output are enabled by default for this operation. Additional
Bayesian controls such as bayesian_draws, warmup, chains, target_accept,
calculate_likelihood, calculate_waic, calculate_loo, and
mcmc_sampling_strategy are passed to native Biogeme through controls.
Because those default Bayesian files are persistent, supply an explicit
output_directory through biogeme_control() (or disable both output types
explicitly).
An object of class biogeme_bayesian_fit containing the native
posterior summary and output paths.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.