| distributed_parameter | R Documentation |
Wraps a child expression in native Biogeme's
DistributedParameter node. The wrapper preserves the named variable in
Bayesian output and is compiled before native estimation; it is not evaluated
by R during sampling.
distributed_parameter(name, expression)
name |
Name used for the stored native variable. |
expression |
Child Biogeme expression, usually a location parameter
plus a scale parameter multiplied by |
This helper is a thin interface to native Biogeme and does not implement a sampling or likelihood engine in R.
A symbolic Biogeme expression compiled to native
DistributedParameter.
beta <- biogeme_beta("b_time")
random_coefficient <- distributed_parameter(
"b_time_rnd",
beta + biogeme_beta("b_time_s", start = 1) * draw("b_time_eps", "NORMAL")
)
format(random_coefficient)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.